mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
13 lines
226 B
Rust
13 lines
226 B
Rust
pub trait Ice {
|
|
fn f(&self, _: ());
|
|
}
|
|
|
|
impl Ice for () {
|
|
fn f(&self, _: ()) {}
|
|
}
|
|
|
|
fn main() {
|
|
().f::<()>(());
|
|
//~^ ERROR this associated function takes 0 generic arguments but 1 generic argument was supplied
|
|
}
|