21 lines
785 B
Plaintext
21 lines
785 B
Plaintext
error[E0038]: the trait `Bar` cannot be made into an object
|
|
--> $DIR/issue-19538.rs:27:15
|
|
|
|
|
LL | let test: &mut Bar = &mut thing;
|
|
| ^^^^^^^^ the trait `Bar` cannot be made into an object
|
|
|
|
|
= note: method `foo` has generic type parameters
|
|
|
|
error[E0038]: the trait `Bar` cannot be made into an object
|
|
--> $DIR/issue-19538.rs:27:26
|
|
|
|
|
LL | let test: &mut Bar = &mut thing;
|
|
| ^^^^^^^^^^ the trait `Bar` cannot be made into an object
|
|
|
|
|
= note: method `foo` has generic type parameters
|
|
= note: required because of the requirements on the impl of `std::ops::CoerceUnsized<&mut dyn Bar>` for `&mut Thing`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0038`.
|