]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/trait-object-safety.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / traits / trait-object-safety.stderr
1 error[E0038]: the trait `Tr` cannot be made into an object
2   --> $DIR/trait-object-safety.rs:15:18
3    |
4 LL |     let _: &Tr = &St; //~ ERROR E0038
5    |                  ^^^ the trait `Tr` cannot be made into an object
6    |
7    = note: method `foo` has no receiver
8    = note: required because of the requirements on the impl of `std::ops::CoerceUnsized<&dyn Tr>` for `&St`
9
10 error[E0038]: the trait `Tr` cannot be made into an object
11   --> $DIR/trait-object-safety.rs:15:12
12    |
13 LL |     let _: &Tr = &St; //~ ERROR E0038
14    |            ^^^ the trait `Tr` cannot be made into an object
15    |
16    = note: method `foo` has no receiver
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0038`.