]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-68890-2.stderr
Rollup merge of #91630 - GuillaumeGomez:missing-whitespace, r=notriddle
[rust.git] / src / test / ui / parser / issues / 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    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
15    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
16
17 error[E0224]: at least one trait is required for an object type
18   --> $DIR/issue-68890-2.rs:3:14
19    |
20 LL | type X<'a> = (?'a) +;
21    |              ^^^^^^^
22
23 error: aborting due to 2 previous errors; 1 warning emitted
24
25 For more information about this error, try `rustc --explain E0224`.