]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0225]: only auto traits can be used as additional traits in a trait object |
dc9dc135 | 2 | --> $DIR/issue-32963.rs:8:31 |
8faf50e0 | 3 | | |
dc9dc135 XL |
4 | LL | 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) | |
8faf50e0 | 11 | |
dfeec247 XL |
12 | error[E0225]: only auto traits can be used as additional traits in a trait object |
13 | --> $DIR/issue-32963.rs:8:31 | |
14 | | | |
15 | LL | size_of_copy::<dyn Misc + Copy>(); | |
16 | | ---- ^^^^ | |
17 | | | | | |
18 | | | additional non-auto trait | |
19 | | | trait alias used in trait object type (additional use) | |
20 | | first non-auto trait | |
21 | | trait alias used in trait object type (first use) | |
22 | ||
8faf50e0 | 23 | error[E0277]: the trait bound `dyn Misc: std::marker::Copy` is not satisfied |
0731742a | 24 | --> $DIR/issue-32963.rs:8:5 |
8faf50e0 | 25 | | |
e1599b0c | 26 | LL | fn size_of_copy<T: Copy+?Sized>() -> usize { mem::size_of::<T>() } |
ba9703b0 | 27 | | ---- required by this bound in `size_of_copy` |
e1599b0c | 28 | ... |
dc9dc135 XL |
29 | LL | size_of_copy::<dyn Misc + Copy>(); |
30 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `dyn Misc` | |
8faf50e0 | 31 | |
dfeec247 | 32 | error: aborting due to 3 previous errors |
8faf50e0 | 33 | |
48663c56 | 34 | Some errors have detailed explanations: E0225, E0277. |
8faf50e0 | 35 | For more information about an error, try `rustc --explain E0225`. |