2022-03-27 21:43:05 -05:00
|
|
|
// run-rustfix
|
|
|
|
#![allow(unused)]
|
|
|
|
|
|
|
|
trait Foo<T>: Sized {
|
2022-03-27 21:43:08 -05:00
|
|
|
fn bar(i: i32, t: T, s: &Self) -> (T, i32);
|
2022-03-27 21:43:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo<usize> for () {
|
2022-03-27 21:43:08 -05:00
|
|
|
fn bar(i: i32, t: usize, s: &()) -> (usize, i32) {
|
|
|
|
//~^ ERROR the placeholder `_` is not allowed within types on item signatures for functions
|
|
|
|
(1, 2)
|
|
|
|
}
|
2022-03-27 21:43:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|