rust/tests/ui/suggestions/issue-101421.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
213 B
Rust
Raw Normal View History

pub trait Ice {
fn f(&self, _: ());
}
impl Ice for () {
fn f(&self, _: ()) {}
}
fn main() {
().f::<()>(());
//~^ ERROR this method takes 0 generic arguments but 1 generic argument was supplied
}