rust-clippy/tests/ui/map_unit_fn.rs

12 lines
132 B
Rust
Raw Normal View History

#![allow(unused)]
2022-03-27 12:41:09 +00:00
struct Mappable;
impl Mappable {
pub fn map(&self) {}
}
fn main() {
let m = Mappable {};
m.map();
}