fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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