fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0038]: the trait `Bar` cannot be made into an object 2 --> $DIR/object-safety-generics.rs:18:1 3 | 4LL | fn bar<T>(&self, t: T); 5 | --- method `bar` has generic type parameters 6... 7LL | fn make_bar<T:Bar>(t: &T) -> &dyn Bar { 8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bar` cannot be made into an object 9 10error[E0038]: the trait `Bar` cannot be made into an object 11 --> $DIR/object-safety-generics.rs:24:1 12 | 13LL | fn bar<T>(&self, t: T); 14 | --- method `bar` has generic type parameters 15... 16LL | fn make_bar_explicit<T:Bar>(t: &T) -> &dyn Bar { 17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bar` cannot be made into an object 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0038`.