rust/tests/ui/map_unit_fn.rs
2025-02-28 23:27:09 +01:00

13 lines
148 B
Rust

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