1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/deafult-generic-associated-type-bound.rs:3:12
4 LL | #![feature(specialization)]
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9 = help: consider using `min_specialization` instead, which is more stable and complete
11 warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
12 --> $DIR/deafult-generic-associated-type-bound.rs:4:12
14 LL | #![feature(generic_associated_types)]
15 | ^^^^^^^^^^^^^^^^^^^^^^^^
17 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
19 error[E0277]: can't compare `T` with `T`
20 --> $DIR/deafult-generic-associated-type-bound.rs:19:5
22 LL | type U<'a>: PartialEq<&'a Self> where Self: 'a;
23 | ------------------- required by this bound in `X::U`
25 LL | default type U<'a> = &'a T;
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `T == T`
28 = note: required because of the requirements on the impl of `PartialEq` for `&'a T`
29 help: consider further restricting this bound
31 LL | impl<T: 'static + std::cmp::PartialEq> X for T {
32 | ^^^^^^^^^^^^^^^^^^^^^
34 error: aborting due to previous error; 2 warnings emitted
36 For more information about this error, try `rustc --explain E0277`.