2018-10-20 15:36:17 -05:00
|
|
|
error: parenthesized lifetime bounds are not supported
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/trait-object-lifetime-parens.rs:5:21
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn f<'a, T: Trait + ('a)>() {}
|
2019-02-05 14:21:03 -06:00
|
|
|
| ^^^^ help: remove the parentheses
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: parenthesized lifetime bounds are not supported
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/trait-object-lifetime-parens.rs:8:24
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _: Box<Trait + ('a)>;
|
2019-02-05 14:21:03 -06:00
|
|
|
| ^^^^ help: remove the parentheses
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2020-03-07 06:52:55 -06:00
|
|
|
error: lifetime in trait object type must be followed by `+`
|
2020-07-02 00:32:12 -05:00
|
|
|
--> $DIR/trait-object-lifetime-parens.rs:10:17
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _: Box<('a) + Trait>;
|
2020-03-07 06:52:55 -06:00
|
|
|
| ^^
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2020-03-07 06:52:55 -06:00
|
|
|
error: aborting due to 3 previous errors
|
2018-10-20 15:36:17 -05:00
|
|
|
|