mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-28 15:41:10 +00:00
15 lines
196 B
Rust
15 lines
196 B
Rust
|
#![allow(clippy::unit_arg, clippy::no_effect)]
|
||
|
|
||
|
const fn v(_: ()) {}
|
||
|
|
||
|
fn main() {
|
||
|
if true {
|
||
|
v({
|
||
|
[0; 1 + 1];
|
||
|
});
|
||
|
Some(())
|
||
|
} else {
|
||
|
None
|
||
|
};
|
||
|
}
|