2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-01-11 04:38:43 +00:00
rust-clippy/tests/ui/map_unit_fn.rs

12 lines
134 B
Rust
Raw Normal View History

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