]> git.lizzy.rs Git - rust.git/blob - tests/ui/result_map_or_into_option.stderr
Addition `manual_map` test for `unsafe` blocks
[rust.git] / tests / ui / result_map_or_into_option.stderr
1 error: called `map_or(None, Some)` on a `Result` value. This can be done more directly by calling `ok()` instead
2   --> $DIR/result_map_or_into_option.rs:7:13
3    |
4 LL |     let _ = opt.map_or(None, Some);
5    |             ^^^^^^^^^^^^^^^^^^^^^^ help: try using `ok` instead: `opt.ok()`
6    |
7    = note: `-D clippy::result-map-or-into-option` implied by `-D warnings`
8
9 error: aborting due to previous error
10