summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-header-lifetime-elision/assoc-type.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-header-lifetime-elision/assoc-type.stderr')
-rw-r--r--tests/ui/impl-header-lifetime-elision/assoc-type.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/impl-header-lifetime-elision/assoc-type.stderr b/tests/ui/impl-header-lifetime-elision/assoc-type.stderr
new file mode 100644
index 000000000..c4f27e0b8
--- /dev/null
+++ b/tests/ui/impl-header-lifetime-elision/assoc-type.stderr
@@ -0,0 +1,15 @@
+error[E0637]: `&` without an explicit lifetime name cannot be used here
+ --> $DIR/assoc-type.rs:11:19
+ |
+LL | type Output = &i32;
+ | ^ explicit lifetime name needed here
+
+error[E0637]: `'_` cannot be used here
+ --> $DIR/assoc-type.rs:16:20
+ |
+LL | type Output = &'_ i32;
+ | ^^ `'_` is a reserved lifetime name
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0637`.