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