2022-09-05 00:23:02 +00:00
|
|
|
pub trait Ice {
|
|
|
|
fn f(&self, _: ());
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Ice for () {
|
|
|
|
fn f(&self, _: ()) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
().f::<()>(());
|
2023-02-23 10:27:06 -07:00
|
|
|
//~^ ERROR method takes 0 generic arguments but 1 generic argument was supplied
|
2022-09-05 00:23:02 +00:00
|
|
|
}
|