]>
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 | |
9 | ||
10 | error[E0277]: can't compare `&'static B` with `B` | |
11 | --> $DIR/deafult-associated-type-bound-2.rs:16:5 | |
12 | | | |
13 | LL | type U: PartialEq<T>; | |
14 | | --------------------- required by `X::U` | |
15 | ... | |
16 | LL | default type U = &'static B; | |
17 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `&'static B == B` | |
18 | | | |
1b1a35ee | 19 | = help: the trait `PartialEq<B>` is not implemented for `&'static B` |
f035d41b XL |
20 | |
21 | error: aborting due to previous error; 1 warning emitted | |
22 | ||
23 | For more information about this error, try `rustc --explain E0277`. |