rust/src/test/ui/let-else/let-else-irrefutable.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
375 B
Plaintext
Raw Normal View History

2021-08-01 19:18:50 -05:00
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