]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0520.stderr
Rollup merge of #102507 - scottmcm:more-binary-search-docs, r=m-ou-se
[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: 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
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    | ------------------------------- parent `impl` is here
16 ...
17 LL |     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
22 error: aborting due to previous error; 1 warning emitted
23
24 For more information about this error, try `rustc --explain E0520`.