From ea2012b2c7cbfe8d580e7e3f82cd2965b401d751 Mon Sep 17 00:00:00 2001 From: toidiu Date: Sun, 10 Jun 2018 02:04:33 -0400 Subject: create separate dep-nodes for predicates_of and explicit_predicates_of --- src/test/incremental/issue-51409.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/test/incremental/issue-51409.rs (limited to 'src/test') diff --git a/src/test/incremental/issue-51409.rs b/src/test/incremental/issue-51409.rs new file mode 100644 index 00000000000..d7aff5afe40 --- /dev/null +++ b/src/test/incremental/issue-51409.rs @@ -0,0 +1,22 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// revisions: rpass1 + +// Regression test that `infer_outlives_predicates` can be +// used with incremental without an ICE. + +#![feature(infer_outlives_requirements)] + +struct Foo<'a, T> { + x: &'a T +} + +fn main() { } -- cgit 1.4.1-3-g733a5