]> git.lizzy.rs Git - rust.git/blob - src/test/ui/or-patterns/mismatched-bindings-async-fn.stderr
Merge commit '15c8d31392b9fbab3b3368b67acc4bbe5983115a' into cranelift-rebase
[rust.git] / src / test / ui / or-patterns / mismatched-bindings-async-fn.stderr
1 error[E0408]: variable `s` is not bound in all patterns
2   --> $DIR/mismatched-bindings-async-fn.rs:4:13
3    |
4 LL | async fn a((x | s): String) {}
5    |             ^   - variable not in all patterns
6    |             |
7    |             pattern doesn't bind `s`
8
9 error[E0408]: variable `x` is not bound in all patterns
10   --> $DIR/mismatched-bindings-async-fn.rs:4:17
11    |
12 LL | async fn a((x | s): String) {}
13    |             -   ^ pattern doesn't bind `x`
14    |             |
15    |             variable not in all patterns
16
17 error[E0408]: variable `s` is not bound in all patterns
18   --> $DIR/mismatched-bindings-async-fn.rs:9:10
19    |
20 LL |     let (x | s) = String::new();
21    |          ^   - variable not in all patterns
22    |          |
23    |          pattern doesn't bind `s`
24
25 error[E0408]: variable `x` is not bound in all patterns
26   --> $DIR/mismatched-bindings-async-fn.rs:9:14
27    |
28 LL |     let (x | s) = String::new();
29    |          -   ^ pattern doesn't bind `x`
30    |          |
31    |          variable not in all patterns
32
33 error: aborting due to 4 previous errors
34
35 For more information about this error, try `rustc --explain E0408`.