1 error: `default` is only allowed on items in `impl` definitions
2 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:6:5
4 LL | default const A: u8;
7 | `default` because of this
9 error: `default` is only allowed on items in `impl` definitions
10 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:7:5
12 LL | default const B: u8 = 0;
13 | -------^^^^^^^^^^^^^^^^^
15 | `default` because of this
17 error: `default` is only allowed on items in `impl` definitions
18 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:8:5
23 | `default` because of this
25 error: `default` is only allowed on items in `impl` definitions
26 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:9:5
28 LL | default type C: Ord;
29 | -------^^^^^^^^^^^^^
31 | `default` because of this
33 error: `default` is only allowed on items in `impl` definitions
34 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:10:5
39 | `default` because of this
41 error: `default` is only allowed on items in `impl` definitions
42 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:11:5
44 LL | default fn f2() {}
47 | `default` because of this
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
52 LL | #![feature(specialization)]
55 = note: `#[warn(incomplete_features)]` on by default
56 = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
58 error: aborting due to 6 previous errors; 1 warning emitted