rust/tests/ui/error-codes/E0520.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
997 B
Plaintext
Raw Normal View History

2020-06-16 08:06:35 +00: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
= help: consider using `min_specialization` instead, which is more stable and complete
2022-09-18 15:55:36 +00:00
= note: `#[warn(incomplete_features)]` on by default
2020-06-16 08:06:35 +00:00
2018-02-08 03:35:35 +00:00
error[E0520]: `fly` specializes an item from a parent `impl`, but that item is not marked `default`
2020-06-16 08:06:35 +00:00
--> $DIR/E0520.rs:17:5
2018-02-08 03:35:35 +00:00
|
2022-02-13 15:27:59 +00:00
LL | impl<T: Clone> SpaceLlama for T {
| ------------------------------- parent `impl` is here
2018-02-08 03:35:35 +00:00
...
2022-02-13 15:27:59 +00:00
LL | default fn fly(&self) {}
2023-02-12 18:49:54 +00:00
| ^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `fly`
2018-02-08 03:35:35 +00:00
|
= note: to specialize, `fly` in the parent `impl` must be marked `default`
2020-06-16 08:06:35 +00:00
error: aborting due to previous error; 1 warning emitted
2018-02-08 03:35:35 +00:00
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0520`.