|
| 1 | +error[E0408]: variable `y` is not bound in all patterns |
| 2 | + --> $DIR/name-resolution.rs:37:10 |
| 3 | + | |
| 4 | +LL | ((Ok(x) if y) | (Err(y) if x),) => x && y, |
| 5 | + | ^^^^^^^^^^^^ - variable not in all patterns |
| 6 | + | | |
| 7 | + | pattern doesn't bind `y` |
| 8 | + |
| 9 | +error[E0408]: variable `x` is not bound in all patterns |
| 10 | + --> $DIR/name-resolution.rs:37:25 |
| 11 | + | |
| 12 | +LL | ((Ok(x) if y) | (Err(y) if x),) => x && y, |
| 13 | + | - ^^^^^^^^^^^^^ pattern doesn't bind `x` |
| 14 | + | | |
| 15 | + | variable not in all patterns |
| 16 | + |
| 17 | +error[E0408]: variable `x` is not bound in all patterns |
| 18 | + --> $DIR/name-resolution.rs:63:28 |
| 19 | + | |
| 20 | +LL | Some(x if x > 0) | None => {} |
| 21 | + | - ^^^^ pattern doesn't bind `x` |
| 22 | + | | |
| 23 | + | variable not in all patterns |
| 24 | + |
| 25 | +error[E0425]: cannot find value `x` in this scope |
| 26 | + --> $DIR/name-resolution.rs:10:34 |
| 27 | + | |
| 28 | +LL | fn bad_fn_item_1(x: bool, ((y if x) | y): bool) {} |
| 29 | + | ^ help: a local variable with a similar name exists: `y` |
| 30 | + |
| 31 | +error[E0425]: cannot find value `y` in this scope |
| 32 | + --> $DIR/name-resolution.rs:12:25 |
| 33 | + | |
| 34 | +LL | fn bad_fn_item_2(((x if y) | x): bool, y: bool) {} |
| 35 | + | ^ help: a local variable with a similar name exists: `x` |
| 36 | + |
| 37 | +error[E0425]: cannot find value `x` in this scope |
| 38 | + --> $DIR/name-resolution.rs:20:18 |
| 39 | + | |
| 40 | +LL | (x, y if x) => x && y, |
| 41 | + | ^ help: a local variable with a similar name exists: `y` |
| 42 | + |
| 43 | +error[E0425]: cannot find value `y` in this scope |
| 44 | + --> $DIR/name-resolution.rs:22:15 |
| 45 | + | |
| 46 | +LL | (x if y, y) => x && y, |
| 47 | + | ^ help: a local variable with a similar name exists: `x` |
| 48 | + |
| 49 | +error[E0425]: cannot find value `x` in this scope |
| 50 | + --> $DIR/name-resolution.rs:29:20 |
| 51 | + | |
| 52 | +LL | (x @ (y if x),) => x && y, |
| 53 | + | ^ help: a local variable with a similar name exists: `y` |
| 54 | + |
| 55 | +error[E0425]: cannot find value `y` in this scope |
| 56 | + --> $DIR/name-resolution.rs:37:20 |
| 57 | + | |
| 58 | +LL | ((Ok(x) if y) | (Err(y) if x),) => x && y, |
| 59 | + | ^ help: a local variable with a similar name exists: `x` |
| 60 | + |
| 61 | +error[E0425]: cannot find value `x` in this scope |
| 62 | + --> $DIR/name-resolution.rs:37:36 |
| 63 | + | |
| 64 | +LL | ((Ok(x) if y) | (Err(y) if x),) => x && y, |
| 65 | + | ^ help: a local variable with a similar name exists: `y` |
| 66 | + |
| 67 | +error[E0425]: cannot find value `nonexistent` in this scope |
| 68 | + --> $DIR/name-resolution.rs:44:15 |
| 69 | + | |
| 70 | +LL | let (_ if nonexistent) = true; |
| 71 | + | ^^^^^^^^^^^ not found in this scope |
| 72 | + |
| 73 | +error[E0425]: cannot find value `x` in this scope |
| 74 | + --> $DIR/name-resolution.rs:46:22 |
| 75 | + | |
| 76 | +LL | if let ((x, y if x) | (x if y, y)) = (true, true) { x && y; } |
| 77 | + | ^ help: a local variable with a similar name exists: `y` |
| 78 | + |
| 79 | +error[E0425]: cannot find value `y` in this scope |
| 80 | + --> $DIR/name-resolution.rs:46:33 |
| 81 | + | |
| 82 | +LL | if let ((x, y if x) | (x if y, y)) = (true, true) { x && y; } |
| 83 | + | ^ help: a local variable with a similar name exists: `x` |
| 84 | + |
| 85 | +error[E0425]: cannot find value `x` in this scope |
| 86 | + --> $DIR/name-resolution.rs:49:25 |
| 87 | + | |
| 88 | +LL | while let ((x, y if x) | (x if y, y)) = (true, true) { x && y; } |
| 89 | + | ^ help: a local variable with a similar name exists: `y` |
| 90 | + |
| 91 | +error[E0425]: cannot find value `y` in this scope |
| 92 | + --> $DIR/name-resolution.rs:49:36 |
| 93 | + | |
| 94 | +LL | while let ((x, y if x) | (x if y, y)) = (true, true) { x && y; } |
| 95 | + | ^ help: a local variable with a similar name exists: `x` |
| 96 | + |
| 97 | +error[E0425]: cannot find value `x` in this scope |
| 98 | + --> $DIR/name-resolution.rs:52:19 |
| 99 | + | |
| 100 | +LL | for ((x, y if x) | (x if y, y)) in [(true, true)] { x && y; } |
| 101 | + | ^ help: a local variable with a similar name exists: `y` |
| 102 | + |
| 103 | +error[E0425]: cannot find value `y` in this scope |
| 104 | + --> $DIR/name-resolution.rs:52:30 |
| 105 | + | |
| 106 | +LL | for ((x, y if x) | (x if y, y)) in [(true, true)] { x && y; } |
| 107 | + | ^ help: a local variable with a similar name exists: `x` |
| 108 | + |
| 109 | +error[E0425]: cannot find value `y` in this scope |
| 110 | + --> $DIR/name-resolution.rs:57:13 |
| 111 | + | |
| 112 | +LL | (|(x if y), (y if x)| x && y)(true, true); |
| 113 | + | ^ help: a local variable with a similar name exists: `x` |
| 114 | + |
| 115 | +error[E0425]: cannot find value `x` in this scope |
| 116 | + --> $DIR/name-resolution.rs:57:23 |
| 117 | + | |
| 118 | +LL | (|(x if y), (y if x)| x && y)(true, true); |
| 119 | + | ^ help: a local variable with a similar name exists: `y` |
| 120 | + |
| 121 | +error[E0308]: mismatched types |
| 122 | + --> $DIR/name-resolution.rs:75:18 |
| 123 | + | |
| 124 | +LL | local if local => 0, |
| 125 | + | ^^^^^ expected `bool`, found `({integer}, {integer})` |
| 126 | + | |
| 127 | + = note: expected type `bool` |
| 128 | + found tuple `({integer}, {integer})` |
| 129 | + |
| 130 | +error: aborting due to 20 previous errors |
| 131 | + |
| 132 | +Some errors have detailed explanations: E0308, E0408, E0425. |
| 133 | +For more information about an error, try `rustc --explain E0308`. |
0 commit comments