rust-clippy/tests/ui/crashes/ice-8821.rs

9 lines
102 B
Rust
Raw Normal View History

#![warn(clippy::let_unit_value)]
fn f() {}
static FN: fn() = f;
fn main() {
let _: () = FN();
}