fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
686 B21 linesraw
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