1 error: `?Trait` is not permitted in trait object types
2 --> $DIR/trait-object-trait-parens.rs:6:25
4 LL | let _: Box<(Copy) + (?Sized) + (for<'a> Trait<'a>)>;
7 error: `?Trait` is not permitted in trait object types
8 --> $DIR/trait-object-trait-parens.rs:11:47
10 LL | let _: Box<(for<'a> Trait<'a>) + (Copy) + (?Sized)>;
13 warning: trait objects without an explicit `dyn` are deprecated
14 --> $DIR/trait-object-trait-parens.rs:6:16
16 LL | let _: Box<(Copy) + (?Sized) + (for<'a> Trait<'a>)>;
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn (Copy) + (?Sized) + (for<'a> Trait<'a>)`
19 = note: `#[warn(bare_trait_objects)]` on by default
21 warning: trait objects without an explicit `dyn` are deprecated
22 --> $DIR/trait-object-trait-parens.rs:9:16
24 LL | let _: Box<(?Sized) + (for<'a> Trait<'a>) + (Copy)>;
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn (?Sized) + (for<'a> Trait<'a>) + (Copy)`
27 warning: trait objects without an explicit `dyn` are deprecated
28 --> $DIR/trait-object-trait-parens.rs:11:16
30 LL | let _: Box<(for<'a> Trait<'a>) + (Copy) + (?Sized)>;
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn (for<'a> Trait<'a>) + (Copy) + (?Sized)`
33 error[E0261]: use of undeclared lifetime name `'a`
34 --> $DIR/trait-object-trait-parens.rs:11:31
36 LL | let _: Box<(for<'a> Trait<'a>) + (Copy) + (?Sized)>;
37 | ^^ undeclared lifetime
39 error: aborting due to 3 previous errors
41 For more information about this error, try `rustc --explain E0261`.