summaryrefslogtreecommitdiff
path: root/tests/ui/const-generics/generic_const_exprs/unresolved_lifetimes_error.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/generic_const_exprs/unresolved_lifetimes_error.stderr')
-rw-r--r--tests/ui/const-generics/generic_const_exprs/unresolved_lifetimes_error.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/const-generics/generic_const_exprs/unresolved_lifetimes_error.stderr b/tests/ui/const-generics/generic_const_exprs/unresolved_lifetimes_error.stderr
new file mode 100644
index 00000000000..976f037062d
--- /dev/null
+++ b/tests/ui/const-generics/generic_const_exprs/unresolved_lifetimes_error.stderr
@@ -0,0 +1,11 @@
+error[E0261]: use of undeclared lifetime name `'a`
+ --> $DIR/unresolved_lifetimes_error.rs:5:13
+ |
+LL | fn foo() -> [(); {
+ | - help: consider introducing lifetime `'a` here: `<'a>`
+LL | let a: &'a ();
+ | ^^ undeclared lifetime
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0261`.