]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-19538.stderr
83c03b514ddcc8dd919d23ad82002acb46676d4a
[rust.git] / src / test / ui / issues / issue-19538.stderr
1 error[E0038]: the trait `Bar` cannot be made into an object
2   --> $DIR/issue-19538.rs:17:15
3    |
4 LL |     fn foo<T>(&self, val: T);
5    |        --- method `foo` has generic type parameters
6 ...
7 LL |     let test: &mut dyn Bar = &mut thing;
8    |               ^^^^^^^^^^^^ the trait `Bar` cannot be made into an object
9
10 error[E0038]: the trait `Bar` cannot be made into an object
11   --> $DIR/issue-19538.rs:17:30
12    |
13 LL |     fn foo<T>(&self, val: T);
14    |        --- method `foo` has generic type parameters
15 ...
16 LL |     let test: &mut dyn Bar = &mut thing;
17    |                              ^^^^^^^^^^ the trait `Bar` cannot be made into an object
18    |
19    = note: required because of the requirements on the impl of `std::ops::CoerceUnsized<&mut dyn Bar>` for `&mut Thing`
20    = note: required by cast to type `&mut dyn Bar`
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0038`.