rust/src/test/ui/parser/trait-object-lifetime-parens.stderr

21 lines
626 B
Text
Raw Normal View History

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