2023-03-16 04:02:56 +00:00
|
|
|
trait Foo {
|
|
|
|
fn bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo for () {
|
|
|
|
fn bar(s: _) {}
|
|
|
|
//~^ ERROR the placeholder `_` is not allowed within types on item signatures for functions
|
2023-10-31 13:45:26 +00:00
|
|
|
//~| ERROR has 1 parameter but the declaration in trait `Foo::bar` has 0
|
2023-03-16 04:02:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|