fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
532 B19 linesraw
1#![warn(anonymous_parameters)]
2// Test for the anonymous_parameters deprecation lint (RFC 1685)
3
4// build-pass (FIXME(62277): could be check-pass?)
5// edition:2015
6// run-rustfix
7
8trait T {
9    fn foo(_: i32); //~ WARNING anonymous parameters are deprecated
10                 //~| WARNING hard error
11
12    fn bar_with_default_impl(_: String, _: String) {}
13    //~^ WARNING anonymous parameters are deprecated
14    //~| WARNING hard error
15    //~| WARNING anonymous parameters are deprecated
16    //~| WARNING hard error
17}
18
19fn main() {}