1 error[E0038]: the trait `Tr` cannot be made into an object
2 --> $DIR/trait-object-safety.rs:15:18
4 LL | let _: &Tr = &St; //~ ERROR E0038
5 | ^^^ the trait `Tr` cannot be made into an object
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`
10 error[E0038]: the trait `Tr` cannot be made into an object
11 --> $DIR/trait-object-safety.rs:15:12
13 LL | let _: &Tr = &St; //~ ERROR E0038
14 | ^^^ the trait `Tr` cannot be made into an object
16 = note: method `foo` has no receiver
18 error: aborting due to 2 previous errors
20 For more information about this error, try `rustc --explain E0038`.