2020-06-16 03:06:35 -05:00
|
|
|
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
|
|
|
|
--> $DIR/E0520.rs:1:12
|
|
|
|
|
|
|
|
|
LL | #![feature(specialization)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
|
2020-10-13 18:35:32 -05:00
|
|
|
= help: consider using `min_specialization` instead, which is more stable and complete
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
2020-06-16 03:06:35 -05:00
|
|
|
|
2018-02-07 21:35:35 -06:00
|
|
|
error[E0520]: `fly` specializes an item from a parent `impl`, but that item is not marked `default`
|
2020-06-16 03:06:35 -05:00
|
|
|
--> $DIR/E0520.rs:17:5
|
2018-02-07 21:35:35 -06:00
|
|
|
|
|
2022-02-13 09:27:59 -06:00
|
|
|
LL | impl<T: Clone> SpaceLlama for T {
|
|
|
|
| ------------------------------- parent `impl` is here
|
2018-02-07 21:35:35 -06:00
|
|
|
...
|
2022-02-13 09:27:59 -06:00
|
|
|
LL | default fn fly(&self) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `fly`
|
2018-02-07 21:35:35 -06:00
|
|
|
|
|
|
|
|
= note: to specialize, `fly` in the parent `impl` must be marked `default`
|
|
|
|
|
2020-06-16 03:06:35 -05:00
|
|
|
error: aborting due to previous error; 1 warning emitted
|
2018-02-07 21:35:35 -06:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0520`.
|