fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected expression, found `let` statement 2 --> $DIR/ast-validate-guards.rs:5:20 3 | 4LL | Ok(opt) if let Some(4) = opt || false => {} 5 | ^^^^^^^^^^^^^^^^^ 6 | 7 = note: only supported directly in conditions of `if` and `while` expressions 8note: `||` operators are not supported in let chain expressions 9 --> $DIR/ast-validate-guards.rs:5:38 10 | 11LL | Ok(opt) if let Some(4) = opt || false => {} 12 | ^^ 13 14error: module cannot be declared unsafe 15 --> $DIR/ast-validate-guards.rs:15:17 16 | 17LL | unsafe mod a {}; 18 | ^^^^^^ 19 20error: aborting due to 2 previous errors 21