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: _, t: _, s: _) -> _ {
|
|
|
|
//~^ ERROR the placeholder `_` is not allowed within types on item signatures for functions
|
2023-10-31 08:45:26 -05:00
|
|
|
//~| ERROR type annotations needed
|
2022-03-27 21:43:08 -05:00
|
|
|
(1, 2)
|
|
|
|
}
|
2022-03-27 21:43:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|