|
1 | 1 | error: `~const` can only be applied to `#[const_trait]` traits
|
2 |
| - --> $DIR/const_trait_impl.rs:34:9 |
| 2 | + --> $DIR/const_trait_impl.rs:36:9 |
3 | 3 | |
|
4 |
| -LL | impl<T: ~const Default> const A for T { |
5 |
| - | ^^^^^^ can't be applied to `Default` |
| 4 | +LL | impl<T: ~const Debug> const A for T { |
| 5 | + | ^^^^^^ can't be applied to `Debug` |
6 | 6 | |
|
7 |
| -note: `Default` can't be used with `~const` because it isn't annotated with `#[const_trait]` |
8 |
| - --> $SRC_DIR/core/src/default.rs:LL:COL |
| 7 | +note: `Debug` can't be used with `~const` because it isn't annotated with `#[const_trait]` |
| 8 | + --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL |
9 | 9 |
|
10 | 10 | error: `~const` can only be applied to `#[const_trait]` traits
|
11 |
| - --> $DIR/const_trait_impl.rs:40:9 |
| 11 | + --> $DIR/const_trait_impl.rs:42:9 |
12 | 12 | |
|
13 |
| -LL | impl<T: ~const Default + ~const Sup> const A for T { |
14 |
| - | ^^^^^^ can't be applied to `Default` |
| 13 | +LL | impl<T: ~const Debug + ~const Sup> const A for T { |
| 14 | + | ^^^^^^ can't be applied to `Debug` |
15 | 15 | |
|
16 |
| -note: `Default` can't be used with `~const` because it isn't annotated with `#[const_trait]` |
17 |
| - --> $SRC_DIR/core/src/default.rs:LL:COL |
| 16 | +note: `Debug` can't be used with `~const` because it isn't annotated with `#[const_trait]` |
| 17 | + --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL |
18 | 18 |
|
19 | 19 | error: `~const` can only be applied to `#[const_trait]` traits
|
20 |
| - --> $DIR/const_trait_impl.rs:46:9 |
| 20 | + --> $DIR/const_trait_impl.rs:48:9 |
21 | 21 | |
|
22 |
| -LL | impl<T: ~const Default + ~const Sub> const A for T { |
23 |
| - | ^^^^^^ can't be applied to `Default` |
| 22 | +LL | impl<T: ~const Debug + ~const Sub> const A for T { |
| 23 | + | ^^^^^^ can't be applied to `Debug` |
24 | 24 | |
|
25 |
| -note: `Default` can't be used with `~const` because it isn't annotated with `#[const_trait]` |
26 |
| - --> $SRC_DIR/core/src/default.rs:LL:COL |
| 25 | +note: `Debug` can't be used with `~const` because it isn't annotated with `#[const_trait]` |
| 26 | + --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL |
27 | 27 |
|
28 | 28 | error: `~const` can only be applied to `#[const_trait]` traits
|
29 |
| - --> $DIR/const_trait_impl.rs:40:9 |
| 29 | + --> $DIR/const_trait_impl.rs:42:9 |
30 | 30 | |
|
31 |
| -LL | impl<T: ~const Default + ~const Sup> const A for T { |
32 |
| - | ^^^^^^ can't be applied to `Default` |
| 31 | +LL | impl<T: ~const Debug + ~const Sup> const A for T { |
| 32 | + | ^^^^^^ can't be applied to `Debug` |
33 | 33 | |
|
34 |
| -note: `Default` can't be used with `~const` because it isn't annotated with `#[const_trait]` |
35 |
| - --> $SRC_DIR/core/src/default.rs:LL:COL |
| 34 | +note: `Debug` can't be used with `~const` because it isn't annotated with `#[const_trait]` |
| 35 | + --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL |
36 | 36 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
37 | 37 |
|
38 | 38 | error: `~const` can only be applied to `#[const_trait]` traits
|
39 |
| - --> $DIR/const_trait_impl.rs:34:9 |
| 39 | + --> $DIR/const_trait_impl.rs:36:9 |
40 | 40 | |
|
41 |
| -LL | impl<T: ~const Default> const A for T { |
42 |
| - | ^^^^^^ can't be applied to `Default` |
| 41 | +LL | impl<T: ~const Debug> const A for T { |
| 42 | + | ^^^^^^ can't be applied to `Debug` |
43 | 43 | |
|
44 |
| -note: `Default` can't be used with `~const` because it isn't annotated with `#[const_trait]` |
45 |
| - --> $SRC_DIR/core/src/default.rs:LL:COL |
| 44 | +note: `Debug` can't be used with `~const` because it isn't annotated with `#[const_trait]` |
| 45 | + --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL |
46 | 46 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
47 | 47 |
|
48 | 48 | error: `~const` can only be applied to `#[const_trait]` traits
|
49 |
| - --> $DIR/const_trait_impl.rs:46:9 |
| 49 | + --> $DIR/const_trait_impl.rs:48:9 |
50 | 50 | |
|
51 |
| -LL | impl<T: ~const Default + ~const Sub> const A for T { |
52 |
| - | ^^^^^^ can't be applied to `Default` |
| 51 | +LL | impl<T: ~const Debug + ~const Sub> const A for T { |
| 52 | + | ^^^^^^ can't be applied to `Debug` |
53 | 53 | |
|
54 |
| -note: `Default` can't be used with `~const` because it isn't annotated with `#[const_trait]` |
55 |
| - --> $SRC_DIR/core/src/default.rs:LL:COL |
| 54 | +note: `Debug` can't be used with `~const` because it isn't annotated with `#[const_trait]` |
| 55 | + --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL |
56 | 56 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
57 | 57 |
|
58 | 58 | error: aborting due to 6 previous errors
|
|
0 commit comments