]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/error_codes.rs
Disallow non-explicit elided lifetimes in async fn
[rust.git] / src / librustc / error_codes.rs
index 7f68b35d014cba72237797858644b332305fb062..fd089fc688e32d5db01a66650e90a1dfe0a6bbce 100644 (file)
@@ -362,10 +362,6 @@ struct Foo1 { x: &bool }
               // ^ expected lifetime parameter
 struct Foo2<'a> { x: &'a bool } // correct
 
-impl Foo2 {}
-  // ^^^^ expected lifetime parameter
-impl<'a> Foo2<'a> {} // correct
-
 struct Bar1 { x: Foo2 }
               // ^^^^ expected lifetime parameter
 struct Bar2<'a> { x: Foo2<'a> } // correct
@@ -2208,4 +2204,5 @@ trait Foo { }
     E0710, // an unknown tool name found in scoped lint
     E0711, // a feature has been declared with conflicting stability attributes
 //  E0702, // replaced with a generic attribute input check
+    E0726, // non-explicit (not `'_`) elided lifetime in unsupported position
 }