]> git.lizzy.rs Git - rust.git/blob - tests/ui/did_you_mean/replace-impl-infer-ty-from-trait.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / did_you_mean / replace-impl-infer-ty-from-trait.rs
1 // run-rustfix
2 #![allow(unused)]
3
4 trait Foo<T>: Sized {
5     fn bar(i: i32, t: T, s: &Self) -> (T, i32);
6 }
7
8 impl Foo<usize> for () {
9     fn bar(i: _, t: _, s: _) -> _ {
10         //~^ ERROR the placeholder `_` is not allowed within types on item signatures for functions
11         (1, 2)
12     }
13 }
14
15 fn main() {}