]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/trait-object-lifetime-parens.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / parser / trait-object-lifetime-parens.stderr
CommitLineData
0bf4aa26 1error: parenthesized lifetime bounds are not supported
9fa01778 2 --> $DIR/trait-object-lifetime-parens.rs:5:21
0bf4aa26 3 |
532ac7d7 4LL | fn f<'a, T: Trait + ('a)>() {}
9fa01778 5 | ^^^^ help: remove the parentheses
0bf4aa26
XL
6
7error: parenthesized lifetime bounds are not supported
9fa01778 8 --> $DIR/trait-object-lifetime-parens.rs:8:24
0bf4aa26 9 |
532ac7d7 10LL | let _: Box<Trait + ('a)>;
9fa01778 11 | ^^^^ help: remove the parentheses
0bf4aa26 12
ba9703b0 13error: lifetime in trait object type must be followed by `+`
0731742a 14 --> $DIR/trait-object-lifetime-parens.rs:9:17
0bf4aa26 15 |
532ac7d7 16LL | let _: Box<('a) + Trait>;
ba9703b0 17 | ^^
0bf4aa26 18
ba9703b0 19error: aborting due to 3 previous errors
0bf4aa26 20