rust/src/test/ui/issues/issue-47706-trait.rs
2018-12-25 21:08:33 -07:00

9 lines
164 B
Rust

trait T {
fn f(&self, _: ()) {
None::<()>.map(Self::f);
}
//~^^ ERROR function is expected to take a single 0-tuple as argument
}
fn main() {}