summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-header-lifetime-elision/path-elided.stderr
blob: 18e4c618dba99f492727c55b8140eef3783e51a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0726]: implicit elided lifetime not allowed here
  --> $DIR/path-elided.rs:7:18
   |
LL | impl MyTrait for Foo {
   |                  ^^^ expected lifetime parameter
   |
help: indicate the anonymous lifetime
   |
LL | impl MyTrait for Foo<'_> {
   |                     ++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0726`.