]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/parser/trait-object-lifetime-parens.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / parser / trait-object-lifetime-parens.rs
index c8b0eb684f33dff1c14b7017bf1990b4d66076c0..5a5c19f32e8060553581805d79d4e819e94d51d4 100644 (file)
@@ -6,9 +6,7 @@ fn f<'a, T: Trait + ('a)>() {} //~ ERROR parenthesized lifetime bounds are not s
 
 fn check<'a>() {
     let _: Box<Trait + ('a)>; //~ ERROR parenthesized lifetime bounds are not supported
-    let _: Box<('a) + Trait>;
-    //~^ ERROR expected type, found `'a`
-    //~| ERROR expected `:`, found `)`
+    let _: Box<('a) + Trait>; //~ ERROR lifetime in trait object type must be followed by `+`
 }
 
 fn main() {}