fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
688 B30 linesraw
1error: inherent impls cannot be `const`
2  --> $DIR/inherent-impl.rs:9:1
3   |
4LL | impl const S {}
5   | ^^^^^^^^^^^^^^^
6   |
7   = note: only trait implementations may be annotated with `const`
8
9error: inherent impls cannot be `const`
10  --> $DIR/inherent-impl.rs:13:1
11   |
12LL | impl const T {}
13   | ^^^^^^^^^^^^^^^
14   |
15   = note: only trait implementations may be annotated with `const`
16
17error: const trait impls are not yet implemented
18  --> $DIR/inherent-impl.rs:9:1
19   |
20LL | impl const S {}
21   | ^^^^^^^^^^^^^^^
22
23error: const trait impls are not yet implemented
24  --> $DIR/inherent-impl.rs:13:1
25   |
26LL | impl const T {}
27   | ^^^^^^^^^^^^^^^
28
29error: aborting due to 4 previous errors
30