fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0510]: cannot assign `q` in match guard 2 --> $DIR/match-guards-partially-borrow.rs:55:13 3 | 4LL | match q { 5 | - value is immutable in match guard 6... 7LL | q = true; 8 | ^^^^^^^^ cannot assign 9 10error[E0510]: cannot assign `r` in match guard 11 --> $DIR/match-guards-partially-borrow.rs:67:13 12 | 13LL | match r { 14 | - value is immutable in match guard 15... 16LL | r = true; 17 | ^^^^^^^^ cannot assign 18 19error[E0510]: cannot assign `t` in match guard 20 --> $DIR/match-guards-partially-borrow.rs:91:13 21 | 22LL | match t { 23 | - value is immutable in match guard 24... 25LL | t = true; 26 | ^^^^^^^^ cannot assign 27 28error[E0510]: cannot mutably borrow `x.0` in match guard 29 --> $DIR/match-guards-partially-borrow.rs:105:22 30 | 31LL | match x { 32 | - value is immutable in match guard 33... 34LL | Some(ref mut r) => *r = None, 35 | ^^^^^^^^^ cannot mutably borrow 36 37error[E0506]: cannot assign to `t` because it is borrowed 38 --> $DIR/match-guards-partially-borrow.rs:117:13 39 | 40LL | s if { 41 | - borrow of `t` occurs here 42LL | t = !t; 43 | ^^^^^^ assignment to borrowed `t` occurs here 44LL | false 45LL | } => (), // What value should `s` have in the arm? 46 | - borrow later used here 47 48error[E0510]: cannot assign `y` in match guard 49 --> $DIR/match-guards-partially-borrow.rs:128:13 50 | 51LL | match *y { 52 | -- value is immutable in match guard 53... 54LL | y = &true; 55 | ^^^^^^^^^ cannot assign 56 57error[E0510]: cannot assign `z` in match guard 58 --> $DIR/match-guards-partially-borrow.rs:139:13 59 | 60LL | match z { 61 | - value is immutable in match guard 62... 63LL | z = &true; 64 | ^^^^^^^^^ cannot assign 65 66error[E0510]: cannot assign `a` in match guard 67 --> $DIR/match-guards-partially-borrow.rs:151:13 68 | 69LL | match a { 70 | - value is immutable in match guard 71... 72LL | a = &true; 73 | ^^^^^^^^^ cannot assign 74 75error[E0510]: cannot assign `b` in match guard 76 --> $DIR/match-guards-partially-borrow.rs:162:13 77 | 78LL | match b { 79 | - value is immutable in match guard 80... 81LL | b = &true; 82 | ^^^^^^^^^ cannot assign 83 84error: aborting due to 9 previous errors 85 86Some errors have detailed explanations: E0506, E0510. 87For more information about an error, try `rustc --explain E0506`.