fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
543 B16 linesraw
1error[E0520]: `fly` specializes an item from a parent `impl`, but that item is not marked `default`
2  --> $DIR/E0520.rs:16:5
3   |
4LL | / impl<T: Clone> SpaceLlama for T {
5LL | |     fn fly(&self) {}
6LL | | }
7   | |_- parent `impl` is here
8...
9LL |       default fn fly(&self) {}
10   |       ^^^^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `fly`
11   |
12   = note: to specialize, `fly` in the parent `impl` must be marked `default`
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0520`.