]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/map_unit_fn.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / tools / clippy / tests / ui / map_unit_fn.rs
1 #![allow(unused)]
2 struct Mappable;
3
4 impl Mappable {
5     pub fn map(&self) {}
6 }
7
8 fn main() {
9     let m = Mappable {};
10     m.map();
11 }