1 error: called `unwrap` on `x` after checking its variant with `is_some`
2 --> $DIR/complex_conditionals_nested.rs:8:13
5 | -------------- help: try: `if let Some(..) = x`
6 LL | x.unwrap(); // unnecessary
9 note: the lint level is defined here
10 --> $DIR/complex_conditionals_nested.rs:1:35
12 LL | #![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: this call to `unwrap()` will always panic
16 --> $DIR/complex_conditionals_nested.rs:10:13
19 | ----------- because of this check
21 LL | x.unwrap(); // will panic
24 note: the lint level is defined here
25 --> $DIR/complex_conditionals_nested.rs:1:9
27 LL | #![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]
28 | ^^^^^^^^^^^^^^^^^^^^^^^^
30 error: aborting due to 2 previous errors