2023-07-27 06:40:22 -05:00
|
|
|
#![warn(clippy::let_unit_value)]
|
|
|
|
|
|
|
|
fn f() {}
|
|
|
|
static FN: fn() = f;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
FN();
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: this let-binding has unit value
|
|
|
|
//~| NOTE: `-D clippy::let-unit-value` implied by `-D warnings`
|
2023-07-27 06:40:22 -05:00
|
|
|
}
|