fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0520]: `foo` specializes an item from a parent `impl`, but that item is not marked `default` 2 --> $DIR/specialization-no-default.rs:20:5 3 | 4LL | / impl<T> Foo for T { 5LL | | fn foo(&self) {} 6LL | | fn bar(&self) {} 7LL | | } 8 | |_- parent `impl` is here 9... 10LL | fn foo(&self) {} 11 | ^^^^^^^^^^^^^^^^ cannot specialize default item `foo` 12 | 13 = note: to specialize, `foo` in the parent `impl` must be marked `default` 14 15error[E0520]: `bar` specializes an item from a parent `impl`, but that item is not marked `default` 16 --> $DIR/specialization-no-default.rs:23:5 17 | 18LL | / impl<T> Foo for T { 19LL | | fn foo(&self) {} 20LL | | fn bar(&self) {} 21LL | | } 22 | |_- parent `impl` is here 23... 24LL | fn bar(&self) {} 25 | ^^^^^^^^^^^^^^^^ cannot specialize default item `bar` 26 | 27 = note: to specialize, `bar` in the parent `impl` must be marked `default` 28 29error[E0520]: `T` specializes an item from a parent `impl`, but that item is not marked `default` 30 --> $DIR/specialization-no-default.rs:37:5 31 | 32LL | / impl<T> Bar for T { 33LL | | type T = u8; 34LL | | } 35 | |_- parent `impl` is here 36... 37LL | type T = (); 38 | ^^^^^^^^^^^^ cannot specialize default item `T` 39 | 40 = note: to specialize, `T` in the parent `impl` must be marked `default` 41 42error[E0520]: `baz` specializes an item from a parent `impl`, but that item is not marked `default` 43 --> $DIR/specialization-no-default.rs:55:5 44 | 45LL | / impl<T: Clone> Baz for T { 46LL | | fn baz(&self) {} 47LL | | } 48 | |_- parent `impl` is here 49... 50LL | fn baz(&self) {} 51 | ^^^^^^^^^^^^^^^^ cannot specialize default item `baz` 52 | 53 = note: to specialize, `baz` in the parent `impl` must be marked `default` 54 55error[E0520]: `redundant` specializes an item from a parent `impl`, but that item is not marked `default` 56 --> $DIR/specialization-no-default.rs:74:5 57 | 58LL | / impl<T: Clone> Redundant for T { 59LL | | fn redundant(&self) {} 60LL | | } 61 | |_- parent `impl` is here 62... 63LL | default fn redundant(&self) {} 64 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `redundant` 65 | 66 = note: to specialize, `redundant` in the parent `impl` must be marked `default` 67 68error: aborting due to 5 previous errors 69 70For more information about this error, try `rustc --explain E0520`.