fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
521 B22 linesraw
1error: inherent impls cannot be `const`
2  --> $DIR/inherent-impl.rs:9:1
3   |
4LL | impl const S {}
5   | ^^^^^-----^^^^^
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:1
13   |
14LL | impl const T {}
15   | ^^^^^-----^^^^^
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