fork/rust

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

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

master
618 B21 linesraw
1warning: irrefutable `let...else` pattern
2  --> $DIR/let-else-irrefutable.rs:4:5
3   |
4LL |     let x = 1 else { return };
5   |     ^^^^^^^^^
6   |
7   = note: this pattern will always match, so the `else` clause is useless
8   = help: consider removing the `else` clause
9   = note: `#[warn(irrefutable_let_patterns)]` on by default
10
11warning: irrefutable `let...else` pattern
12  --> $DIR/let-else-irrefutable.rs:7:5
13   |
14LL |     let x = 1 else {
15   |     ^^^^^^^^^
16   |
17   = note: this pattern will always match, so the `else` clause is useless
18   = help: consider removing the `else` clause
19
20warning: 2 warnings emitted
21