about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/map_unit_fn.rs
blob: 3a810196a44db3c37a96bd931aa4b85cc1118172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ check-pass

#![allow(unused)]
struct Mappable;

impl Mappable {
    pub fn map(&self) {}
}

fn main() {
    let m = Mappable {};
    m.map();
}