rust/tests/ui/object-safety/assoc_type_bounds_sized_oth...

22 lines
714 B
Plaintext

error[E0191]: the value of the associated type `Bop` in `Foo` must be specified
--> $DIR/assoc_type_bounds_sized_others.rs:12:16
|
LL | type Bop;
| -------- `Bop` defined here
...
LL | fn foo(_: &dyn Foo) {}
| ^^^ help: specify the associated type: `Foo<Bop = Type>`
error[E0191]: the value of the associated type `Bop` in `Bar` must be specified
--> $DIR/assoc_type_bounds_sized_others.rs:22:16
|
LL | type Bop;
| -------- `Bop` defined here
...
LL | fn bar(_: &dyn Bar) {}
| ^^^ help: specify the associated type: `Bar<Bop = Type>`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0191`.