1 error: `?` may only modify trait bounds, not lifetime bounds
2 --> $DIR/issue-68890-2.rs:3:15
4 LL | type X<'a> = (?'a) +;
7 warning: trait objects without an explicit `dyn` are deprecated
8 --> $DIR/issue-68890-2.rs:3:14
10 LL | type X<'a> = (?'a) +;
11 | ^^^^^^^ help: use `dyn`: `dyn (?'a) +`
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>
17 error[E0224]: at least one trait is required for an object type
18 --> $DIR/issue-68890-2.rs:3:14
20 LL | type X<'a> = (?'a) +;
23 error: aborting due to 2 previous errors; 1 warning emitted
25 For more information about this error, try `rustc --explain E0224`.