]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32963.stderr
Auto merge of #60039 - rasendubi:assert-trailing-junk, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-32963.stderr
1 error[E0225]: only auto traits can be used as additional traits in a trait object
2   --> $DIR/issue-32963.rs:8:25
3    |
4 LL |     size_of_copy::<Misc+Copy>();
5    |                         ^^^^ non-auto additional trait
6
7 error[E0277]: the trait bound `dyn Misc: std::marker::Copy` is not satisfied
8   --> $DIR/issue-32963.rs:8:5
9    |
10 LL |     size_of_copy::<Misc+Copy>();
11    |     ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `dyn Misc`
12    |
13 note: required by `size_of_copy`
14   --> $DIR/issue-32963.rs:5:1
15    |
16 LL | fn size_of_copy<T: Copy+?Sized>() -> usize { mem::size_of::<T>() }
17    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20
21 Some errors have detailed explanations: E0225, E0277.
22 For more information about an error, try `rustc --explain E0225`.