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