fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0225]: only auto traits can be used as additional traits in a trait object 2 --> $DIR/issue-32963.rs:8:31 3 | 4LL | size_of_copy::<dyn Misc + Copy>(); 5 | ---- ^^^^ 6 | | | 7 | | additional non-auto trait 8 | | trait alias used in trait object type (additional use) 9 | first non-auto trait 10 | trait alias used in trait object type (first use) 11 12error[E0277]: the trait bound `dyn Misc: std::marker::Copy` is not satisfied 13 --> $DIR/issue-32963.rs:8:5 14 | 15LL | fn size_of_copy<T: Copy+?Sized>() -> usize { mem::size_of::<T>() } 16 | ------------ ---- required by this bound in `size_of_copy` 17... 18LL | size_of_copy::<dyn Misc + Copy>(); 19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `dyn Misc` 20 21error: aborting due to 2 previous errors 22 23Some errors have detailed explanations: E0225, E0277. 24For more information about an error, try `rustc --explain E0225`.