fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
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 = note: required by cast to type `&dyn Tr` 12 13error[E0038]: the trait `Tr` cannot be made into an object 14 --> $DIR/trait-object-safety.rs:15:12 15 | 16LL | fn foo(); 17 | --- associated function `foo` has no `self` parameter 18... 19LL | let _: &dyn Tr = &St; 20 | ^^^^^^^ the trait `Tr` cannot be made into an object 21 22error: aborting due to 2 previous errors 23 24For more information about this error, try `rustc --explain E0038`.