summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/bad-infer-in-trait-impl.rs
blob: 87db2636fb24df67d437a3259e9f28776b08b9e0 (plain)
1
2
3
4
5
6
7
8
9
10
trait Foo {
    fn bar();
}

impl Foo for () {
    fn bar(s: _) {}
    //~^ ERROR the placeholder `_` is not allowed within types on item signatures for functions
}

fn main() {}