]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-7169.stderr
Rollup merge of #86263 - fee1-dead:rustdoc-layout-variants, r=camelid
[rust.git] / src / tools / clippy / tests / ui / crashes / ice-7169.stderr
1 error: redundant pattern matching, consider using `is_ok()`
2   --> $DIR/ice-7169.rs:8:12
3    |
4 LL |     if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
5    |     -------^^^^^-------------------------------------- help: try this: `if Ok::<_, ()>(A::<String>::default()).is_ok()`
6    |
7    = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
8
9 error: aborting due to previous error
10