11error[E0409]: variable `a` is bound in inconsistent ways within the same match arm
2- --> $DIR/inconsistent-modes.rs:7 :25
2+ --> $DIR/inconsistent-modes.rs:9 :25
33 |
44LL | let Ok(a) | Err(ref a): Result<&u8, u8> = Ok(&0);
55 | - ^ bound in different ways
66 | |
77 | first binding
88
99error[E0409]: variable `a` is bound in inconsistent ways within the same match arm
10- --> $DIR/inconsistent-modes.rs:9 :29
10+ --> $DIR/inconsistent-modes.rs:11 :29
1111 |
1212LL | let Ok(ref mut a) | Err(a): Result<u8, &mut u8> = Ok(0);
1313 | - ^ bound in different ways
1414 | |
1515 | first binding
1616
1717error[E0409]: variable `a` is bound in inconsistent ways within the same match arm
18- --> $DIR/inconsistent-modes.rs:11 :33
18+ --> $DIR/inconsistent-modes.rs:13 :33
1919 |
2020LL | let Ok(ref a) | Err(ref mut a): Result<&u8, &mut u8> = Ok(&0);
2121 | - first binding ^ bound in different ways
2222
2323error[E0409]: variable `a` is bound in inconsistent ways within the same match arm
24- --> $DIR/inconsistent-modes.rs:14 :39
24+ --> $DIR/inconsistent-modes.rs:16 :39
2525 |
2626LL | let Ok((ref a, b)) | Err((ref mut a, ref b)) = Ok((0, &0));
2727 | - first binding ^ bound in different ways
2828
2929error[E0409]: variable `b` is bound in inconsistent ways within the same match arm
30- --> $DIR/inconsistent-modes.rs:14 :46
30+ --> $DIR/inconsistent-modes.rs:16 :46
3131 |
3232LL | let Ok((ref a, b)) | Err((ref mut a, ref b)) = Ok((0, &0));
3333 | - first binding ^ bound in different ways
3434
3535error[E0409]: variable `a` is bound in inconsistent ways within the same match arm
36- --> $DIR/inconsistent-modes.rs:20 :38
36+ --> $DIR/inconsistent-modes.rs:22 :38
3737 |
3838LL | let Ok(Ok(a) | Err(a)) | Err(ref a) = Err(0);
3939 | - ^ bound in different ways
4040 | |
4141 | first binding
4242
4343error[E0409]: variable `a` is bound in inconsistent ways within the same match arm
44- --> $DIR/inconsistent-modes.rs:24 :34
44+ --> $DIR/inconsistent-modes.rs:26 :34
4545 |
4646LL | let Ok([ Ok((Ok(ref a) | Err(a),)) | Err(a) ]) | Err(a) = Err(&1);
4747 | - ^ bound in different ways
4848 | |
4949 | first binding
5050
51+ warning: the feature `or_patterns` is incomplete and may cause the compiler to crash
52+ --> $DIR/inconsistent-modes.rs:3:12
53+ |
54+ LL | #![feature(or_patterns)]
55+ | ^^^^^^^^^^^
56+ |
57+ = note: `#[warn(incomplete_features)]` on by default
58+
5159error[E0308]: mismatched types
52- --> $DIR/inconsistent-modes.rs:11 :25
60+ --> $DIR/inconsistent-modes.rs:13 :25
5361 |
5462LL | let Ok(ref a) | Err(ref mut a): Result<&u8, &mut u8> = Ok(&0);
5563 | ^^^^^^^^^ types differ in mutability
@@ -58,7 +66,7 @@ LL | let Ok(ref a) | Err(ref mut a): Result<&u8, &mut u8> = Ok(&0);
5866 found type `&mut &mut u8`
5967
6068error[E0308]: mismatched types
61- --> $DIR/inconsistent-modes.rs:14 :31
69+ --> $DIR/inconsistent-modes.rs:16 :31
6270 |
6371LL | let Ok((ref a, b)) | Err((ref mut a, ref b)) = Ok((0, &0));
6472 | ^^^^^^^^^ types differ in mutability
0 commit comments