]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/issue-39698.stderr
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / span / issue-39698.stderr
1 error[E0408]: variable `d` is not bound in all patterns
2   --> $DIR/issue-39698.rs:10:37
3    |
4 LL |         T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
5    |                  -          -       ^^^^^^^^   ^^^^^^^^ pattern doesn't bind `d`
6    |                  |          |       |
7    |                  |          |       pattern doesn't bind `d`
8    |                  |          variable not in all patterns
9    |                  variable not in all patterns
10
11 error[E0408]: variable `a` is not bound in all patterns
12   --> $DIR/issue-39698.rs:10:23
13    |
14 LL |         T::T1(a, d) | T::T2(d, b) | T::T3(c) | T::T4(a) => { println!("{:?}", a); }
15    |               -       ^^^^^^^^^^^   ^^^^^^^^         - variable not in all patterns
16    |               |       |             |
17    |               |       |             pattern doesn't bind `a`
18    |               |       pattern doesn't bind `a`
19    |               variable not in all patterns
20
21 error[E0408]: variable `b` is not bound in all patterns
22   --> $DIR/issue-39698.rs:10:9
23    |
24 LL |         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
31 error[E0408]: variable `c` is not bound in all patterns
32   --> $DIR/issue-39698.rs:10:9
33    |
34 LL |         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
41 error: aborting due to 4 previous errors
42
43 For more information about this error, try `rustc --explain E0408`.