fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
591 B24 linesraw
1warning: skipping const checks
2  --> $DIR/enum_discriminants.rs:23:13
3   |
4LL |     let x = Foo::B;
5   |             ^^^^^^
6
7warning: skipping const checks
8  --> $DIR/enum_discriminants.rs:25:9
9   |
10LL |         Foo::B => 0,
11   |         ^^^^^^
12
13warning: skipping const checks
14  --> $DIR/enum_discriminants.rs:88:28
15   |
16LL |     if let E1::V2 { .. } = (E1::V1 { f: true }) {
17   |                            ^^^^^^^^^^^^^^^^^^^^
18
19warning: skipping const checks
20  --> $DIR/enum_discriminants.rs:88:12
21   |
22LL |     if let E1::V2 { .. } = (E1::V1 { f: true }) {
23   |            ^^^^^^^^^^^^^
24