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