]> git.lizzy.rs Git - rust.git/blob - src/test/ui/object-safety/object-safety-generics.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / object-safety / object-safety-generics.stderr
1 error[E0038]: the trait `Bar` cannot be made into an object
2   --> $DIR/object-safety-generics.rs:14:1
3    |
4 LL | fn make_bar<T:Bar>(t: &T) -> &Bar {
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bar` cannot be made into an object
6    |
7    = note: method `bar` has generic type parameters
8
9 error[E0038]: the trait `Bar` cannot be made into an object
10   --> $DIR/object-safety-generics.rs:19:1
11    |
12 LL | fn make_bar_explicit<T:Bar>(t: &T) -> &Bar {
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bar` cannot be made into an object
14    |
15    = note: method `bar` has generic type parameters
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0038`.