summaryrefslogtreecommitdiffstats
path: root/src/test/ui/let-else/let-else-irrefutable.stderr
blob: e030c50d45dcf7b4aed415121f370d5007a31b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
warning: irrefutable `let...else` pattern
  --> $DIR/let-else-irrefutable.rs:6:5
   |
LL |     let x = 1 else { return };
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(irrefutable_let_patterns)]` on by default
   = note: this pattern will always match, so the `else` clause is useless
   = help: consider removing the `else` clause

warning: 1 warning emitted