]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0038]: the trait `Foo` cannot be made into an object |
0731742a | 2 | --> $DIR/issue-38604.rs:14:13 |
8faf50e0 | 3 | | |
74b04a01 XL |
4 | LL | trait Foo where u32: Q<Self> { |
5 | | --- ------- ...because it uses `Self` as a type parameter in this | |
6 | | | | |
7 | | this trait cannot be made into an object... | |
8 | ... | |
dc9dc135 XL |
9 | LL | let _f: Box<dyn Foo> = |
10 | | ^^^^^^^^^^^^ the trait `Foo` cannot be made into an object | |
8faf50e0 XL |
11 | |
12 | error[E0038]: the trait `Foo` cannot be made into an object | |
0731742a | 13 | --> $DIR/issue-38604.rs:15:9 |
8faf50e0 | 14 | | |
74b04a01 XL |
15 | LL | trait Foo where u32: Q<Self> { |
16 | | --- ------- ...because it uses `Self` as a type parameter in this | |
17 | | | | |
18 | | this trait cannot be made into an object... | |
19 | ... | |
532ac7d7 | 20 | LL | Box::new(()); |
8faf50e0 XL |
21 | | ^^^^^^^^^^^^ the trait `Foo` cannot be made into an object |
22 | | | |
1b1a35ee XL |
23 | = note: required because of the requirements on the impl of `CoerceUnsized<Box<dyn Foo>>` for `Box<()>` |
24 | = note: required by cast to type `Box<dyn Foo>` | |
8faf50e0 XL |
25 | |
26 | error: aborting due to 2 previous errors | |
27 | ||
28 | For more information about this error, try `rustc --explain E0038`. |