fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
582 B19 linesraw
1#![warn(anonymous_parameters)]
2// Test for the anonymous_parameters deprecation lint (RFC 1685)
3
4// check-pass
5// edition:2015
6// run-rustfix
7
8trait T {
9    fn foo(_: i32); //~ WARNING anonymous parameters are deprecated
10                 //~| WARNING this is accepted in the current edition
11
12    fn bar_with_default_impl(_: String, _: String) {}
13    //~^ WARNING anonymous parameters are deprecated
14    //~| WARNING this is accepted in the current edition
15    //~| WARNING anonymous parameters are deprecated
16    //~| WARNING this is accepted in the current edition
17}
18
19fn main() {}