fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
997 B24 linesraw
1warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2  --> $DIR/E0520.rs:1:12
3   |
4LL | #![feature(specialization)]
5   |            ^^^^^^^^^^^^^^
6   |
7   = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
8   = help: consider using `min_specialization` instead, which is more stable and complete
9   = note: `#[warn(incomplete_features)]` on by default
10
11error[E0520]: `fly` specializes an item from a parent `impl`, but that item is not marked `default`
12  --> $DIR/E0520.rs:17:5
13   |
14LL | impl<T: Clone> SpaceLlama for T {
15   | ------------------------------- parent `impl` is here
16...
17LL |     default fn fly(&self) {}
18   |     ^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `fly`
19   |
20   = note: to specialize, `fly` in the parent `impl` must be marked `default`
21
22error: aborting due to previous error; 1 warning emitted
23
24For more information about this error, try `rustc --explain E0520`.