1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/default-associated-type-bound-2.rs:2:12
4 LL | #![feature(specialization)]
7 = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
8 = help: consider using `min_specialization` instead, which is more stable and complete
9 = note: `#[warn(incomplete_features)]` on by default
11 error[E0277]: can't compare `&'static B` with `B`
12 --> $DIR/default-associated-type-bound-2.rs:16:22
14 LL | default type U = &'static B;
15 | ^^^^^^^^^^ no implementation for `&'static B == B`
17 = help: the trait `PartialEq<B>` is not implemented for `&'static B`
18 note: required by a bound in `X::U`
19 --> $DIR/default-associated-type-bound-2.rs:6:13
21 LL | type U: PartialEq<T>;
22 | ^^^^^^^^^^^^ required by this bound in `X::U`
23 help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
25 LL | impl<B: 'static, T> X<B> for T where &'static B: PartialEq<B> {
26 | ++++++++++++++++++++++++++++++
28 error: aborting due to previous error; 1 warning emitted
30 For more information about this error, try `rustc --explain E0277`.