fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error: `default` is only allowed on items in `impl` definitions 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 `impl` definitions 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 `impl` definitions 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 `impl` definitions 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 `impl` definitions 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 `impl` definitions 42 --> $DIR/trait-item-with-defaultness-fail-semantic.rs:11:5 43 | 44LL | default fn f2() {} 45 | -------^^^^^^^^ 46 | | 47 | `default` because of this 48 49error: aborting due to 6 previous errors 50