mirror of https://github.com/rust-lang/rust
14 lines
410 B
Plaintext
14 lines
410 B
Plaintext
error: associated type bounds are not allowed in `dyn` types
|
|
--> $DIR/assoc-type-eq-with-dyn-atb-fail.rs:28:28
|
|
|
|
|
LL | type Out = Box<dyn Bar<Assoc: Copy>>;
|
|
| ^^^^^^^^^^^
|
|
|
|
|
help: use `impl Trait` to introduce a type instead
|
|
|
|
|
LL | type Out = Box<dyn Bar<Assoc = impl Copy>>;
|
|
| ~~~~~~
|
|
|
|
error: aborting due to 1 previous error
|
|
|