]>
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/specialization-wfcheck.rs:3: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 | 10 | |
1b1a35ee | 11 | error[E0277]: the trait bound `U: Eq` is not satisfied |
0731742a | 12 | --> $DIR/specialization-wfcheck.rs:7:17 |
b7449926 | 13 | | |
ba9703b0 XL |
14 | LL | trait Foo<'a, T: Eq + 'a> { } |
15 | | -- required by this bound in `Foo` | |
16 | LL | | |
b7449926 | 17 | LL | default impl<U> Foo<'static, U> for () {} |
1b1a35ee | 18 | | ^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `U` |
74b04a01 | 19 | | |
ba9703b0 | 20 | help: consider restricting type parameter `U` |
74b04a01 | 21 | | |
1b1a35ee XL |
22 | LL | default impl<U: Eq> Foo<'static, U> for () {} |
23 | | ^^^^ | |
b7449926 | 24 | |
f035d41b | 25 | error: aborting due to previous error; 1 warning emitted |
b7449926 XL |
26 | |
27 | For more information about this error, try `rustc --explain E0277`. |