]> git.lizzy.rs Git - rust.git/blob - tests/ui/ok_if_let.stderr
Merge pull request #1748 from luisbg/empty_lines
[rust.git] / tests / ui / ok_if_let.stderr
1 error: Matching on `Some` with `ok()` is redundant
2   --> $DIR/ok_if_let.rs:7:5
3    |
4 7  | /     if let Some(y) = x.parse().ok() {
5 8  | |         y
6 9  | |     } else {
7 10 | |         0
8 11 | |     }
9    | |_____^
10    |
11 note: lint level defined here
12   --> $DIR/ok_if_let.rs:4:9
13    |
14 4  | #![deny(if_let_some_result)]
15    |         ^^^^^^^^^^^^^^^^^^
16    = help: Consider matching on `Ok(y)` and removing the call to `ok` instead
17
18 error: aborting due to previous error
19