]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-32963.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-32963.stderr
CommitLineData
8faf50e0 1error[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
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)
8faf50e0 11
dfeec247
XL
12error[E0225]: only auto traits can be used as additional traits in a trait object
13 --> $DIR/issue-32963.rs:8:31
14 |
15LL | 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 23error[E0277]: the trait bound `dyn Misc: std::marker::Copy` is not satisfied
0731742a 24 --> $DIR/issue-32963.rs:8:5
8faf50e0 25 |
e1599b0c 26LL | 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
29LL | size_of_copy::<dyn Misc + Copy>();
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `dyn Misc`
8faf50e0 31
dfeec247 32error: aborting due to 3 previous errors
8faf50e0 33
48663c56 34Some errors have detailed explanations: E0225, E0277.
8faf50e0 35For more information about an error, try `rustc --explain E0225`.