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: 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
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 | ----------------- parent `impl` is here
18 | ^^^^^^^^^^^^^^^^ cannot specialize default item `foo`
20 = note: to specialize, `foo` in the parent `impl` must be marked `default`
22 error[E0520]: `bar` specializes an item from a parent `impl`, but that item is not marked `default`
23 --> $DIR/specialization-no-default.rs:23:5
25 LL | impl<T> Foo for T {
26 | ----------------- parent `impl` is here
29 | ^^^^^^^^^^^^^^^^ cannot specialize default item `bar`
31 = note: to specialize, `bar` in the parent `impl` must be marked `default`
33 error[E0520]: `T` specializes an item from a parent `impl`, but that item is not marked `default`
34 --> $DIR/specialization-no-default.rs:37:5
36 LL | impl<T> Bar for T {
37 | ----------------- parent `impl` is here
40 | ^^^^^^^^^^^^ cannot specialize default item `T`
42 = note: to specialize, `T` in the parent `impl` must be marked `default`
44 error[E0520]: `baz` specializes an item from a parent `impl`, but that item is not marked `default`
45 --> $DIR/specialization-no-default.rs:55:5
47 LL | impl<T: Clone> Baz for T {
48 | ------------------------ parent `impl` is here
51 | ^^^^^^^^^^^^^^^^ cannot specialize default item `baz`
53 = note: to specialize, `baz` in the parent `impl` must be marked `default`
55 error[E0520]: `redundant` specializes an item from a parent `impl`, but that item is not marked `default`
56 --> $DIR/specialization-no-default.rs:74:5
58 LL | impl<T: Clone> Redundant for T {
59 | ------------------------------ parent `impl` is here
61 LL | default fn redundant(&self) {}
62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `redundant`
64 = note: to specialize, `redundant` in the parent `impl` must be marked `default`
66 error: aborting due to 5 previous errors; 1 warning emitted
68 For more information about this error, try `rustc --explain E0520`.