1 error[E0038]: the trait `Bar` cannot be made into an object
2 --> $DIR/object-safety-generics.rs:14:1
4 LL | fn make_bar<T:Bar>(t: &T) -> &Bar {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bar` cannot be made into an object
7 = note: method `bar` has generic type parameters
9 error[E0038]: the trait `Bar` cannot be made into an object
10 --> $DIR/object-safety-generics.rs:19:1
12 LL | fn make_bar_explicit<T:Bar>(t: &T) -> &Bar {
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bar` cannot be made into an object
15 = note: method `bar` has generic type parameters
17 error: aborting due to 2 previous errors
19 For more information about this error, try `rustc --explain E0038`.