fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0416]: identifier `a` is bound more than once in the same pattern 2 --> $DIR/already-bound-name.rs:12:13 3 | 4LL | let (a, a) = (0, 1); // Standard duplication without an or-pattern. 5 | ^ used in a pattern more than once 6 7error[E0416]: identifier `a` is bound more than once in the same pattern 8 --> $DIR/already-bound-name.rs:15:15 9 | 10LL | let (a, A(a, _) | B(a)) = (0, A(1, 2)); 11 | ^ used in a pattern more than once 12 13error[E0416]: identifier `a` is bound more than once in the same pattern 14 --> $DIR/already-bound-name.rs:15:25 15 | 16LL | let (a, A(a, _) | B(a)) = (0, A(1, 2)); 17 | ^ used in a pattern more than once 18 19error[E0416]: identifier `a` is bound more than once in the same pattern 20 --> $DIR/already-bound-name.rs:19:26 21 | 22LL | let (A(a, _) | B(a), a) = (A(0, 1), 2); 23 | ^ used in a pattern more than once 24 25error[E0416]: identifier `a` is bound more than once in the same pattern 26 --> $DIR/already-bound-name.rs:22:14 27 | 28LL | let A(a, a) | B(a) = A(0, 1); 29 | ^ used in a pattern more than once 30 31error[E0416]: identifier `a` is bound more than once in the same pattern 32 --> $DIR/already-bound-name.rs:25:21 33 | 34LL | let B(a) | A(a, a) = A(0, 1); 35 | ^ used in a pattern more than once 36 37error[E0416]: identifier `a` is bound more than once in the same pattern 38 --> $DIR/already-bound-name.rs:29:21 39 | 40LL | B(a) | A(a, a) => {} // Let's ensure `match` has no funny business. 41 | ^ used in a pattern more than once 42 43error[E0416]: identifier `a` is bound more than once in the same pattern 44 --> $DIR/already-bound-name.rs:33:36 45 | 46LL | let B(A(a, _) | B(a)) | A(a, A(a, _) | B(a)) = B(B(1)); 47 | ^ used in a pattern more than once 48 49error[E0416]: identifier `a` is bound more than once in the same pattern 50 --> $DIR/already-bound-name.rs:33:46 51 | 52LL | let B(A(a, _) | B(a)) | A(a, A(a, _) | B(a)) = B(B(1)); 53 | ^ used in a pattern more than once 54 55error[E0416]: identifier `a` is bound more than once in the same pattern 56 --> $DIR/already-bound-name.rs:38:36 57 | 58LL | let B(_) | A(A(a, _) | B(a), A(a, _) | B(a)) = B(B(1)); 59 | ^ used in a pattern more than once 60 61error[E0416]: identifier `a` is bound more than once in the same pattern 62 --> $DIR/already-bound-name.rs:38:46 63 | 64LL | let B(_) | A(A(a, _) | B(a), A(a, _) | B(a)) = B(B(1)); 65 | ^ used in a pattern more than once 66 67error[E0408]: variable `a` is not bound in all patterns 68 --> $DIR/already-bound-name.rs:38:9 69 | 70LL | let B(_) | A(A(a, _) | B(a), A(a, _) | B(a)) = B(B(1)); 71 | ^^^^ pattern doesn't bind `a` - variable not in all patterns 72 73error[E0416]: identifier `a` is bound more than once in the same pattern 74 --> $DIR/already-bound-name.rs:43:49 75 | 76LL | let B(A(a, _) | B(a)) | A(A(a, _) | B(a), A(a, _) | B(a)) = B(B(1)); 77 | ^ used in a pattern more than once 78 79error[E0416]: identifier `a` is bound more than once in the same pattern 80 --> $DIR/already-bound-name.rs:43:59 81 | 82LL | let B(A(a, _) | B(a)) | A(A(a, _) | B(a), A(a, _) | B(a)) = B(B(1)); 83 | ^ used in a pattern more than once 84 85warning: the feature `or_patterns` is incomplete and may cause the compiler to crash 86 --> $DIR/already-bound-name.rs:4:12 87 | 88LL | #![feature(or_patterns)] 89 | ^^^^^^^^^^^ 90 | 91 = note: `#[warn(incomplete_features)]` on by default 92 93error[E0308]: mismatched types 94 --> $DIR/already-bound-name.rs:33:31 95 | 96LL | let B(A(a, _) | B(a)) | A(a, A(a, _) | B(a)) = B(B(1)); 97 | ^ expected integer, found enum `E` 98 | 99 = note: expected type `{integer}` 100 found type `E<{integer}>` 101 102error: aborting due to 15 previous errors 103 104Some errors have detailed explanations: E0308, E0408, E0416. 105For more information about an error, try `rustc --explain E0308`.