11error: parenthesized lifetime bounds are not supported
2- --> $DIR/trait-object-lifetime-parens.rs:5 :21
2+ --> $DIR/trait-object-lifetime-parens.rs:7 :21
33 |
44LL | fn f<'a, T: Trait + ('a)>() {}
55 | ^^^^ help: remove the parentheses
66
77error: parenthesized lifetime bounds are not supported
8- --> $DIR/trait-object-lifetime-parens.rs:8 :24
8+ --> $DIR/trait-object-lifetime-parens.rs:10 :24
99 |
1010LL | let _: Box<Trait + ('a)>;
1111 | ^^^^ help: remove the parentheses
1212
1313error: expected `:`, found `)`
14- --> $DIR/trait-object-lifetime-parens.rs:9 :19
14+ --> $DIR/trait-object-lifetime-parens.rs:11 :19
1515 |
1616LL | let _: Box<('a) + Trait>;
1717 | ^ expected `:`
1818
1919error: chained comparison operators require parentheses
20- --> $DIR/trait-object-lifetime-parens.rs:9 :15
20+ --> $DIR/trait-object-lifetime-parens.rs:11 :15
2121 |
2222LL | let _: Box<('a) + Trait>;
2323 | ^^^^^^^^^^^^^^^
@@ -26,7 +26,7 @@ LL | let _: Box<('a) + Trait>;
2626 = help: or use `(...)` if you meant to specify fn arguments
2727
2828error: expected type, found `'a`
29- --> $DIR/trait-object-lifetime-parens.rs:9 :17
29+ --> $DIR/trait-object-lifetime-parens.rs:11 :17
3030 |
3131LL | let _: Box<('a) + Trait>;
3232 | - ^^
0 commit comments