]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-68890-2.stderr
Rollup merge of #72209 - Nemo157:lint-no-mangle-in-unsafe-code, r=nikomatsakis
[rust.git] / src / test / ui / parser / issue-68890-2.stderr
1 error: `?` may only modify trait bounds, not lifetime bounds
2   --> $DIR/issue-68890-2.rs:3:15
3    |
4 LL | type X<'a> = (?'a) +;
5    |               ^
6
7 warning: trait objects without an explicit `dyn` are deprecated
8   --> $DIR/issue-68890-2.rs:3:14
9    |
10 LL | type X<'a> = (?'a) +;
11    |              ^^^^^^^ help: use `dyn`: `dyn (?'a) +`
12    |
13    = note: `#[warn(bare_trait_objects)]` on by default
14
15 error[E0224]: at least one trait is required for an object type
16   --> $DIR/issue-68890-2.rs:3:14
17    |
18 LL | type X<'a> = (?'a) +;
19    |              ^^^^^^^
20
21 error: aborting due to 2 previous errors; 1 warning emitted
22
23 For more information about this error, try `rustc --explain E0224`.