1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/specialization-no-default.rs:1:12
4 LL | #![feature(specialization)]
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
11 error[E0520]: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
12 --> $DIR/specialization-no-default.rs:20:5
14 LL | / impl<T> Foo for T {
15 LL | | fn foo(&self) {}
16 LL | | fn bar(&self) {}
18 | |_- parent `impl` is here
21 | ^^^^^^^^^^^^^^^^ cannot specialize default item `foo`
23 = note: to specialize, `foo` in the parent `impl` must be marked `default`
25 error[E0520]: `bar` specializes an item from a parent `impl`, but that item is not marked `default`
26 --> $DIR/specialization-no-default.rs:23:5
28 LL | / impl<T> Foo for T {
29 LL | | fn foo(&self) {}
30 LL | | fn bar(&self) {}
32 | |_- parent `impl` is here
35 | ^^^^^^^^^^^^^^^^ cannot specialize default item `bar`
37 = note: to specialize, `bar` in the parent `impl` must be marked `default`
39 error[E0520]: `T` specializes an item from a parent `impl`, but that item is not marked `default`
40 --> $DIR/specialization-no-default.rs:37:5
42 LL | / impl<T> Bar for T {
45 | |_- parent `impl` is here
48 | ^^^^^^^^^^^^ cannot specialize default item `T`
50 = note: to specialize, `T` in the parent `impl` must be marked `default`
52 error[E0520]: `baz` specializes an item from a parent `impl`, but that item is not marked `default`
53 --> $DIR/specialization-no-default.rs:55:5
55 LL | / impl<T: Clone> Baz for T {
56 LL | | fn baz(&self) {}
58 | |_- parent `impl` is here
61 | ^^^^^^^^^^^^^^^^ cannot specialize default item `baz`
63 = note: to specialize, `baz` in the parent `impl` must be marked `default`
65 error[E0520]: `redundant` specializes an item from a parent `impl`, but that item is not marked `default`
66 --> $DIR/specialization-no-default.rs:74:5
68 LL | / impl<T: Clone> Redundant for T {
69 LL | | fn redundant(&self) {}
71 | |_- parent `impl` is here
73 LL | default fn redundant(&self) {}
74 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `redundant`
76 = note: to specialize, `redundant` in the parent `impl` must be marked `default`
78 error: aborting due to 5 previous errors; 1 warning emitted
80 For more information about this error, try `rustc --explain E0520`.