blob: bc76323f18397a9e2b77c3ddba77837157d7e40c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
error[E0038]: the trait `Trait` cannot be made into an object
--> $DIR/E0038.rs:15:1
|
LL | fn call_foo(x: Box<Trait>) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait` cannot be made into an object
|
= note: method `foo` references the `Self` type in its arguments or return type
error: aborting due to previous error
For more information about this error, try `rustc --explain E0038`.
|