]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-38604.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-38604.stderr
1 error[E0038]: the trait `Foo` cannot be made into an object
2   --> $DIR/issue-38604.rs:24:13
3    |
4 LL |     let _f: Box<Foo> = //~ ERROR `Foo` cannot be made into an object
5    |             ^^^^^^^^ the trait `Foo` cannot be made into an object
6    |
7    = note: the trait cannot use `Self` as a type parameter in the supertraits or where-clauses
8
9 error[E0038]: the trait `Foo` cannot be made into an object
10   --> $DIR/issue-38604.rs:25:9
11    |
12 LL |         Box::new(()); //~ ERROR `Foo` cannot be made into an object
13    |         ^^^^^^^^^^^^ the trait `Foo` cannot be made into an object
14    |
15    = note: the trait cannot use `Self` as a type parameter in the supertraits or where-clauses
16    = note: required because of the requirements on the impl of `std::ops::CoerceUnsized<std::boxed::Box<dyn Foo>>` for `std::boxed::Box<()>`
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0038`.