1 error[E0225]: only auto traits can be used as additional traits in a trait object
2 --> $DIR/issue-32963.rs:8:25
4 LL | size_of_copy::<Misc+Copy>();
5 | ^^^^ non-auto additional trait
7 error[E0277]: the trait bound `dyn Misc: std::marker::Copy` is not satisfied
8 --> $DIR/issue-32963.rs:8:5
10 LL | size_of_copy::<Misc+Copy>();
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `dyn Misc`
13 note: required by `size_of_copy`
14 --> $DIR/issue-32963.rs:5:1
16 LL | fn size_of_copy<T: Copy+?Sized>() -> usize { mem::size_of::<T>() }
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 error: aborting due to 2 previous errors
21 Some errors have detailed explanations: E0225, E0277.
22 For more information about an error, try `rustc --explain E0225`.