]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-38604.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-38604.stderr
CommitLineData
8faf50e0 1error[E0038]: the trait `Foo` cannot be made into an object
0731742a 2 --> $DIR/issue-38604.rs:14:13
8faf50e0 3 |
74b04a01
XL
4LL | 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
9LL | let _f: Box<dyn Foo> =
10 | ^^^^^^^^^^^^ the trait `Foo` cannot be made into an object
8faf50e0
XL
11
12error[E0038]: the trait `Foo` cannot be made into an object
0731742a 13 --> $DIR/issue-38604.rs:15:9
8faf50e0 14 |
74b04a01
XL
15LL | 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 20LL | 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
26error: aborting due to 2 previous errors
27
28For more information about this error, try `rustc --explain E0038`.