mirror of https://github.com/rust-lang/rust
16 lines
529 B
Plaintext
16 lines
529 B
Plaintext
error[E0277]: the trait bound `u8: Identity` is not satisfied
|
|
--> $DIR/projection-as-union-type-error.rs:13:9
|
|
|
|
|
LL | a: <Foo as Identity>::Identity,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Identity` is not implemented for `u8`
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
--> $DIR/projection-as-union-type-error.rs:6:1
|
|
|
|
|
LL | pub trait Identity {
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|