]> git.proxmox.com Git - rustc.git/blob - tests/ui/anon-params/anon-params-deprecated.fixed
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / anon-params / anon-params-deprecated.fixed
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
8 trait 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
19 fn main() {}