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