]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-header-lifetime-elision/path-elided.stderr
Disallow non-explicit elided lifetimes in async fn
[rust.git] / src / test / ui / impl-header-lifetime-elision / path-elided.stderr
index c9287ffba96d3c8d36dcc14b430a3832babcbeae..6500a2a55f6677d807922ec67f2cff89d53f6fe3 100644 (file)
@@ -1,9 +1,8 @@
-error[E0106]: missing lifetime specifier
+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: `<'_>`
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0106`.