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