11error: `default` is only allowed on items in trait impls
2- --> $DIR/trait-item-with-defaultness -fail-semantic.rs:6:5
2+ --> $DIR/defaultness-invalid-places -fail-semantic.rs:6:5
33 |
44LL | default const A: u8;
55 | -------^^^^^^^^^^^^^
66 | |
77 | `default` because of this
88
99error: `default` is only allowed on items in trait impls
10- --> $DIR/trait-item-with-defaultness -fail-semantic.rs:7:5
10+ --> $DIR/defaultness-invalid-places -fail-semantic.rs:7:5
1111 |
1212LL | default const B: u8 = 0;
1313 | -------^^^^^^^^^^^^^^^^^
1414 | |
1515 | `default` because of this
1616
1717error: `default` is only allowed on items in trait impls
18- --> $DIR/trait-item-with-defaultness -fail-semantic.rs:8:5
18+ --> $DIR/defaultness-invalid-places -fail-semantic.rs:8:5
1919 |
2020LL | default type D;
2121 | -------^^^^^^^^
2222 | |
2323 | `default` because of this
2424
2525error: `default` is only allowed on items in trait impls
26- --> $DIR/trait-item-with-defaultness -fail-semantic.rs:9:5
26+ --> $DIR/defaultness-invalid-places -fail-semantic.rs:9:5
2727 |
2828LL | default type C: Ord;
2929 | -------^^^^^^^^^^^^^
3030 | |
3131 | `default` because of this
3232
3333error: `default` is only allowed on items in trait impls
34- --> $DIR/trait-item-with-defaultness -fail-semantic.rs:10:5
34+ --> $DIR/defaultness-invalid-places -fail-semantic.rs:10:5
3535 |
3636LL | default fn f1();
3737 | -------^^^^^^^^^
3838 | |
3939 | `default` because of this
4040
4141error: `default` is only allowed on items in trait impls
42- --> $DIR/trait-item-with-defaultness -fail-semantic.rs:11:5
42+ --> $DIR/defaultness-invalid-places -fail-semantic.rs:11:5
4343 |
4444LL | default fn f2() {}
4545 | -------^^^^^^^^
4646 | |
4747 | `default` because of this
4848
49+ error: `default` is only allowed on items in trait impls
50+ --> $DIR/defaultness-invalid-places-fail-semantic.rs:14:1
51+ |
52+ LL | default const E: u8 = 0;
53+ | -------^^^^^^^^^^^^^^^^^
54+ | |
55+ | `default` because of this
56+
57+ error: `default` is only allowed on items in trait impls
58+ --> $DIR/defaultness-invalid-places-fail-semantic.rs:15:1
59+ |
60+ LL | default type F = ();
61+ | -------^^^^^^^^^^^^^
62+ | |
63+ | `default` because of this
64+
65+ error: `default` is only allowed on items in trait impls
66+ --> $DIR/defaultness-invalid-places-fail-semantic.rs:16:1
67+ |
68+ LL | default fn h() {}
69+ | -------^^^^^^^
70+ | |
71+ | `default` because of this
72+
4973warning: 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
74+ --> $DIR/defaultness-invalid-places -fail-semantic.rs:1:12
5175 |
5276LL | #![feature(specialization)]
5377 | ^^^^^^^^^^^^^^
@@ -56,5 +80,5 @@ LL | #![feature(specialization)]
5680 = help: consider using `min_specialization` instead, which is more stable and complete
5781 = note: `#[warn(incomplete_features)]` on by default
5882
59- error: aborting due to 6 previous errors; 1 warning emitted
83+ error: aborting due to 9 previous errors; 1 warning emitted
6084
0 commit comments