]> git.lizzy.rs Git - rust.git/blob - tests/ui/ok_if_let.stderr
Update tests to new format of multiline errors
[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  | |
6 9  | |         y
7 10 | |     } else {
8 11 | |         0
9 12 | |     }
10    | |_____^
11    |
12 note: lint level defined here
13   --> $DIR/ok_if_let.rs:4:9
14    |
15 4  | #![deny(if_let_some_result)]
16    |         ^^^^^^^^^^^^^^^^^^
17    = help: Consider matching on `Ok(y)` and removing the call to `ok` instead
18
19 error: aborting due to previous error
20