1 #![warn(anonymous_parameters)]
2 // Test for the anonymous_parameters deprecation lint (RFC 1685)
4 // build-pass (FIXME(62277): could be check-pass?)
9 fn foo(_: i32); //~ WARNING anonymous parameters are deprecated
10 //~| WARNING hard error
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