fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0038]: the trait `Tr` cannot be made into an object 2 --> $DIR/trait-object-safety.rs:15:22 3 | 4LL | fn foo(); 5 | --- associated function `foo` has no `self` parameter 6... 7LL | let _: &dyn Tr = &St; 8 | ^^^ the trait `Tr` cannot be made into an object 9 | 10 = note: required because of the requirements on the impl of `std::ops::CoerceUnsized<&dyn Tr>` for `&St` 11 12error[E0038]: the trait `Tr` cannot be made into an object 13 --> $DIR/trait-object-safety.rs:15:12 14 | 15LL | fn foo(); 16 | --- associated function `foo` has no `self` parameter 17... 18LL | let _: &dyn Tr = &St; 19 | ^^^^^^^ the trait `Tr` cannot be made into an object 20 21error: aborting due to 2 previous errors 22 23For more information about this error, try `rustc --explain E0038`.