]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-header-lifetime-elision/trait-elided.rs
Disallow non-explicit elided lifetimes in async fn
[rust.git] / src / test / ui / impl-header-lifetime-elision / trait-elided.rs
index 1fb57b96ba9b444a1c7be9e2ae53f6f4d06e64af..102d259b0c87ab5e9976df924dce3951c6448e77 100644 (file)
@@ -1,18 +1,9 @@
-// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
 #![allow(warnings)]
 
 trait MyTrait<'a> { }
 
 impl MyTrait for u32 {
-    //~^ ERROR missing lifetime specifier
+    //~^ ERROR implicit elided lifetime not allowed here
 }
 
 fn main() {}