2018-10-20 15:36:17 -05:00
|
|
|
error: parenthesized lifetime bounds are not supported
|
2019-02-05 14:21:03 -06:00
|
|
|
--> $DIR/trait-object-lifetime-parens.rs:5:21
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
LL | fn f<'a, T: Trait + ('a)>() {} //~ ERROR parenthesized lifetime bounds are not supported
|
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-02-05 14:21:03 -06:00
|
|
|
--> $DIR/trait-object-lifetime-parens.rs:8:24
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
LL | let _: Box<Trait + ('a)>; //~ ERROR parenthesized lifetime bounds are not supported
|
2019-02-05 14:21:03 -06:00
|
|
|
| ^^^^ help: remove the parentheses
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: expected type, found `'a`
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/trait-object-lifetime-parens.rs:9:17
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
LL | let _: Box<('a) + Trait>; //~ ERROR expected type, found `'a`
|
2018-10-20 15:36:17 -05:00
|
|
|
| - ^^
|
|
|
|
| |
|
|
|
|
| while parsing the type for `_`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|