rust/src/test/ui/parser/issue-68890-2.stderr

23 lines
593 B
Plaintext
Raw Normal View History

2020-03-07 05:14:39 -06:00
error: `?` may only modify trait bounds, not lifetime bounds
--> $DIR/issue-68890-2.rs:3:15
2020-03-07 05:14:39 -06:00
|
LL | type X<'a> = (?'a) +;
| ^
2020-03-07 05:14:39 -06:00
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/issue-68890-2.rs:3:14
2020-03-07 05:14:39 -06:00
|
LL | type X<'a> = (?'a) +;
| ^^^^^^^ help: use `dyn`: `dyn (?'a) +`
|
= note: `#[warn(bare_trait_objects)]` on by default
error[E0224]: at least one trait is required for an object type
--> $DIR/issue-68890-2.rs:3:14
|
LL | type X<'a> = (?'a) +;
| ^^^^^^^
2020-03-07 05:14:39 -06:00
error: aborting due to 2 previous errors