summaryrefslogtreecommitdiffstats
path: root/src/test/incremental/issue-51409.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/incremental/issue-51409.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/incremental/issue-51409.rs b/src/test/incremental/issue-51409.rs
new file mode 100644
index 000000000..280094ec0
--- /dev/null
+++ b/src/test/incremental/issue-51409.rs
@@ -0,0 +1,10 @@
+// revisions: rpass1
+
+// Regression test that `infer_outlives_predicates` can be
+// used with incremental without an ICE.
+
+struct Foo<'a, T> {
+ x: &'a T
+}
+
+fn main() { }