summaryrefslogtreecommitdiffstats
path: root/src/test/ui/underscore-lifetime/where-clauses.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/underscore-lifetime/where-clauses.stderr')
-rw-r--r--src/test/ui/underscore-lifetime/where-clauses.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/underscore-lifetime/where-clauses.stderr b/src/test/ui/underscore-lifetime/where-clauses.stderr
new file mode 100644
index 000000000..1a3ea4af7
--- /dev/null
+++ b/src/test/ui/underscore-lifetime/where-clauses.stderr
@@ -0,0 +1,15 @@
+error[E0637]: `'_` cannot be used here
+ --> $DIR/where-clauses.rs:3:10
+ |
+LL | impl<'b: '_> Foo<'b> for i32 {}
+ | ^^ `'_` is a reserved lifetime name
+
+error[E0637]: `'_` cannot be used here
+ --> $DIR/where-clauses.rs:5:9
+ |
+LL | impl<T: '_> Foo<'static> for Vec<T> {}
+ | ^^ `'_` is a reserved lifetime name
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0637`.