fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
573 B22 linesraw
1error: inherent impls cannot be `const`
2  --> $DIR/inherent-impl.rs:9:12
3   |
4LL | impl const S {}
5   |      ----- ^ inherent impl for this type
6   |      |
7   |      `const` because of this
8   |
9   = note: only trait implementations may be annotated with `const`
10
11error: inherent impls cannot be `const`
12  --> $DIR/inherent-impl.rs:12:12
13   |
14LL | impl const T {}
15   |      ----- ^ inherent impl for this type
16   |      |
17   |      `const` because of this
18   |
19   = note: only trait implementations may be annotated with `const`
20
21error: aborting due to 2 previous errors
22