fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: `default` is only allowed on items in trait impls 2 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:6:5 3 | 4LL | default const A: u8; 5 | -------^^^^^^^^^^^^^ 6 | | 7 | `default` because of this 8 9error: `default` is only allowed on items in trait impls 10 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:7:5 11 | 12LL | default const B: u8 = 0; 13 | -------^^^^^^^^^^^^^^^^^ 14 | | 15 | `default` because of this 16 17error: `default` is only allowed on items in trait impls 18 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:8:5 19 | 20LL | default type D; 21 | -------^^^^^^^^ 22 | | 23 | `default` because of this 24 25error: `default` is only allowed on items in trait impls 26 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:9:5 27 | 28LL | default type C: Ord; 29 | -------^^^^^^^^^^^^^ 30 | | 31 | `default` because of this 32 33error: `default` is only allowed on items in trait impls 34 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:10:5 35 | 36LL | default fn f1(); 37 | -------^^^^^^^^^ 38 | | 39 | `default` because of this 40 41error: `default` is only allowed on items in trait impls 42 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:11:5 43 | 44LL | default fn f2() {} 45 | -------^^^^^^^^ 46 | | 47 | `default` because of this 48 49warning: 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 | 52LL | #![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 59error: aborting due to 6 previous errors; 1 warning emitted 60