Files
rust/tests/ui/error-codes/E0520.stderr
T
2026-03-21 20:10:07 +00:00

15 lines
527 B
Plaintext

error[E0520]: `fly` specializes an item from a parent `impl`, but that item is not marked `default`
--> $DIR/E0520.rs:16:5
|
LL | impl<T: Clone> SpaceLlama for T {
| ------------------------------- parent `impl` is here
...
LL | default fn fly(&self) {}
| ^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `fly`
|
= note: to specialize, `fly` in the parent `impl` must be marked `default`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0520`.