blob: 74b77338c85c02d90461a82f8521eca9d52fa063 (
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:5: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`.
|