|
| 1 | +error: `default` is only allowed on items in trait impls |
| 2 | + --> $DIR/trait-item-with-defaultness-fail-semantic.rs:6:5 |
| 3 | + | |
| 4 | +LL | default const A: u8; |
| 5 | + | -------^^^^^^^^^^^^^ |
| 6 | + | | |
| 7 | + | `default` because of this |
| 8 | + |
| 9 | +error: `default` is only allowed on items in trait impls |
| 10 | + --> $DIR/trait-item-with-defaultness-fail-semantic.rs:7:5 |
| 11 | + | |
| 12 | +LL | default const B: u8 = 0; |
| 13 | + | -------^^^^^^^^^^^^^^^^^ |
| 14 | + | | |
| 15 | + | `default` because of this |
| 16 | + |
| 17 | +error: `default` is only allowed on items in trait impls |
| 18 | + --> $DIR/trait-item-with-defaultness-fail-semantic.rs:8:5 |
| 19 | + | |
| 20 | +LL | default type D; |
| 21 | + | -------^^^^^^^^ |
| 22 | + | | |
| 23 | + | `default` because of this |
| 24 | + |
| 25 | +error: `default` is only allowed on items in trait impls |
| 26 | + --> $DIR/trait-item-with-defaultness-fail-semantic.rs:9:5 |
| 27 | + | |
| 28 | +LL | default type C: Ord; |
| 29 | + | -------^^^^^^^^^^^^^ |
| 30 | + | | |
| 31 | + | `default` because of this |
| 32 | + |
| 33 | +error: `default` is only allowed on items in trait impls |
| 34 | + --> $DIR/trait-item-with-defaultness-fail-semantic.rs:10:5 |
| 35 | + | |
| 36 | +LL | default fn f1(); |
| 37 | + | -------^^^^^^^^^ |
| 38 | + | | |
| 39 | + | `default` because of this |
| 40 | + |
| 41 | +error: `default` is only allowed on items in trait impls |
| 42 | + --> $DIR/trait-item-with-defaultness-fail-semantic.rs:11:5 |
| 43 | + | |
| 44 | +LL | default fn f2() {} |
| 45 | + | -------^^^^^^^^ |
| 46 | + | | |
| 47 | + | `default` because of this |
| 48 | + |
| 49 | +warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes |
| 50 | + --> $DIR/trait-item-with-defaultness-fail-semantic.rs:1:12 |
| 51 | + | |
| 52 | +LL | #![feature(specialization)] |
| 53 | + | ^^^^^^^^^^^^^^ |
| 54 | + | |
| 55 | + = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information |
| 56 | + = help: consider using `min_specialization` instead, which is more stable and complete |
| 57 | + = note: `#[warn(incomplete_features)]` on by default |
| 58 | + |
| 59 | +error: aborting due to 6 previous errors; 1 warning emitted |
| 60 | + |
0 commit comments