fork/rust

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

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

1.44.0
2.0 KiB43 linesraw
1error[E0408]: variable `a` is not bound in all patterns
2  --> $DIR/issue-39698.rs:10:23
3   |
4LL |         T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
5   |               -       ^^^^^^^^^^^   ^^^^^^^^         - variable not in all patterns
6   |               |       |             |
7   |               |       |             pattern doesn't bind `a`
8   |               |       pattern doesn't bind `a`
9   |               variable not in all patterns
10
11error[E0408]: variable `d` is not bound in all patterns
12  --> $DIR/issue-39698.rs:10:37
13   |
14LL |         T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
15   |                  -          -       ^^^^^^^^   ^^^^^^^^ pattern doesn't bind `d`
16   |                  |          |       |
17   |                  |          |       pattern doesn't bind `d`
18   |                  |          variable not in all patterns
19   |                  variable not in all patterns
20
21error[E0408]: variable `b` is not bound in all patterns
22  --> $DIR/issue-39698.rs:10:9
23   |
24LL |         T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
25   |         ^^^^^^^^^^^            -    ^^^^^^^^   ^^^^^^^^ pattern doesn't bind `b`
26   |         |                      |    |
27   |         |                      |    pattern doesn't bind `b`
28   |         |                      variable not in all patterns
29   |         pattern doesn't bind `b`
30
31error[E0408]: variable `c` is not bound in all patterns
32  --> $DIR/issue-39698.rs:10:9
33   |
34LL |         T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
35   |         ^^^^^^^^^^^   ^^^^^^^^^^^         -    ^^^^^^^^ pattern doesn't bind `c`
36   |         |             |                   |
37   |         |             |                   variable not in all patterns
38   |         |             pattern doesn't bind `c`
39   |         pattern doesn't bind `c`
40
41error: aborting due to 4 previous errors
42
43For more information about this error, try `rustc --explain E0408`.