rust-clippy/tests/ui/map_unit_fn.rs
2022-03-30 20:12:58 +02:00

11 lines
132 B
Rust

#![allow(unused)]
struct Mappable;
impl Mappable {
pub fn map(&self) {}
}
fn main() {
let m = Mappable {};
m.map();
}