fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `Discriminant<<T as Foo>::Assoc>: Bar` is not satisfied 2 --> $DIR/projection-discr-kind.rs:14:15 3 | 4LL | needs_bar(std::mem::discriminant(&x)); 5 | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bar` is not implemented for `Discriminant<<T as Foo>::Assoc>` 6 | | 7 | required by a bound introduced by this call 8 | 9help: this trait has no implementations, consider adding one 10 --> $DIR/projection-discr-kind.rs:10:1 11 | 12LL | trait Bar {} 13 | ^^^^^^^^^ 14note: required by a bound in `needs_bar` 15 --> $DIR/projection-discr-kind.rs:11:22 16 | 17LL | fn needs_bar(_: impl Bar) {} 18 | ^^^ required by this bound in `needs_bar` 19 20error: aborting due to previous error 21 22For more information about this error, try `rustc --explain E0277`.