summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-header-lifetime-elision/trait-elided.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/impl-header-lifetime-elision/trait-elided.stderr')
-rw-r--r--src/test/ui/impl-header-lifetime-elision/trait-elided.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/impl-header-lifetime-elision/trait-elided.stderr b/src/test/ui/impl-header-lifetime-elision/trait-elided.stderr
new file mode 100644
index 000000000..412bba6be
--- /dev/null
+++ b/src/test/ui/impl-header-lifetime-elision/trait-elided.stderr
@@ -0,0 +1,15 @@
+error[E0726]: implicit elided lifetime not allowed here
+ --> $DIR/trait-elided.rs:5:6
+ |
+LL | impl MyTrait for u32 {}
+ | ^^^^^^^ expected lifetime parameter
+ |
+ = note: assuming a `'static` lifetime...
+help: indicate the anonymous lifetime
+ |
+LL | impl MyTrait<'_> for u32 {}
+ | ++++
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0726`.