2018-08-22 15:07:27 -05:00
|
|
|
#![warn(anonymous_parameters)]
|
2017-05-01 21:38:46 -05:00
|
|
|
// Test for the anonymous_parameters deprecation lint (RFC 1685)
|
|
|
|
|
2020-04-19 19:27:28 -05:00
|
|
|
// check-pass
|
2018-08-22 15:07:27 -05:00
|
|
|
// edition:2015
|
|
|
|
// run-rustfix
|
|
|
|
|
2017-05-01 21:38:46 -05:00
|
|
|
trait T {
|
2018-08-22 15:07:27 -05:00
|
|
|
fn foo(i32); //~ WARNING anonymous parameters are deprecated
|
2021-06-16 07:27:44 -05:00
|
|
|
//~| WARNING this is accepted in the current edition
|
2017-05-01 21:38:46 -05:00
|
|
|
|
|
|
|
fn bar_with_default_impl(String, String) {}
|
2018-08-22 15:07:27 -05:00
|
|
|
//~^ WARNING anonymous parameters are deprecated
|
2021-06-16 07:27:44 -05:00
|
|
|
//~| WARNING this is accepted in the current edition
|
2018-08-22 15:07:27 -05:00
|
|
|
//~| WARNING anonymous parameters are deprecated
|
2021-06-16 07:27:44 -05:00
|
|
|
//~| WARNING this is accepted in the current edition
|
2017-05-01 21:38:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|