]>
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/E0520.rs:1: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 | |
2c00a5a8 | 11 | error[E0520]: `fly` specializes an item from a parent `impl`, but that item is not marked `default` |
f035d41b | 12 | --> $DIR/E0520.rs:17:5 |
2c00a5a8 | 13 | | |
0531ce1d XL |
14 | LL | / impl<T: Clone> SpaceLlama for T { |
15 | LL | | fn fly(&self) {} | |
16 | LL | | } | |
2c00a5a8 XL |
17 | | |_- parent `impl` is here |
18 | ... | |
0531ce1d | 19 | LL | default fn fly(&self) {} |
2c00a5a8 XL |
20 | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `fly` |
21 | | | |
22 | = note: to specialize, `fly` in the parent `impl` must be marked `default` | |
23 | ||
f035d41b | 24 | error: aborting due to previous error; 1 warning emitted |
2c00a5a8 | 25 | |
0531ce1d | 26 | For more information about this error, try `rustc --explain E0520`. |