]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-96381.rs
Update snap from `1.0.1` to `1.1.0`
[rust.git] / tests / rustdoc / issue-96381.rs
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() {}