]>
Commit | Line | Data |
---|---|---|
04454e1e FG |
1 | // should-fail |
2 | ||
3 | #![allow(unused)] | |
4 | ||
5 | trait Foo<T>: Sized { | |
6 | fn bar(i: i32, t: T, s: &Self) -> (T, i32); | |
7 | } | |
8 | ||
9 | impl Foo<usize> for () { | |
10 | fn bar(i: _, t: _, s: _) -> _ { | |
11 | //~^ ERROR the placeholder `_` is not allowed within types on item signatures for functions | |
12 | (1, 2) | |
13 | } | |
14 | } | |
15 | ||
16 | fn main() {} |