1
1
error: parenthesized lifetime bounds are not supported
2
- --> $DIR/trait-object-lifetime-parens.rs:5 :21
2
+ --> $DIR/trait-object-lifetime-parens.rs:7 :21
3
3
|
4
4
LL | fn f<'a, T: Trait + ('a)>() {}
5
5
| ^^^^ help: remove the parentheses
6
6
7
7
error: parenthesized lifetime bounds are not supported
8
- --> $DIR/trait-object-lifetime-parens.rs:8 :24
8
+ --> $DIR/trait-object-lifetime-parens.rs:10 :24
9
9
|
10
10
LL | let _: Box<Trait + ('a)>;
11
11
| ^^^^ help: remove the parentheses
12
12
13
13
error: expected `:`, found `)`
14
- --> $DIR/trait-object-lifetime-parens.rs:9 :19
14
+ --> $DIR/trait-object-lifetime-parens.rs:11 :19
15
15
|
16
16
LL | let _: Box<('a) + Trait>;
17
17
| ^ expected `:`
18
18
19
19
error: chained comparison operators require parentheses
20
- --> $DIR/trait-object-lifetime-parens.rs:9 :15
20
+ --> $DIR/trait-object-lifetime-parens.rs:11 :15
21
21
|
22
22
LL | let _: Box<('a) + Trait>;
23
23
| ^^^^^^^^^^^^^^^
@@ -26,7 +26,7 @@ LL | let _: Box<('a) + Trait>;
26
26
= help: or use `(...)` if you meant to specify fn arguments
27
27
28
28
error: expected type, found `'a`
29
- --> $DIR/trait-object-lifetime-parens.rs:9 :17
29
+ --> $DIR/trait-object-lifetime-parens.rs:11 :17
30
30
|
31
31
LL | let _: Box<('a) + Trait>;
32
32
| - ^^
0 commit comments