mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-01-07 18:58:46 +00:00
12 lines
164 B
Rust
12 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() {}
|
||
|
}
|