rust-clippy/tests/ui/crashes/ice-7169.fixed
2023-08-11 14:02:28 +00:00

11 lines
164 B
Rust

#![allow(clippy::needless_if)]
#[derive(Default)]
struct A<T> {
a: Vec<A<T>>,
b: T,
}
fn main() {
if Ok::<_, ()>(A::<String>::default()).is_ok() {}
}