2018-08-22 20:07:27 +00:00
|
|
|
#![warn(anonymous_parameters)]
|
|
|
|
// Test for the anonymous_parameters deprecation lint (RFC 1685)
|
|
|
|
|
2020-04-20 00:27:28 +00:00
|
|
|
//@ check-pass
|
2018-08-22 20:07:27 +00:00
|
|
|
//@ edition:2015
|
|
|
|
//@ run-rustfix
|
|
|
|
|
2024-02-07 02:42:01 +00:00
|
|
|
#[allow(dead_code)]
|
2018-08-22 20:07:27 +00:00
|
|
|
trait T {
|
|
|
|
fn foo(_: i32); //~ WARNING anonymous parameters are deprecated
|
2021-06-16 12:27:44 +00:00
|
|
|
//~| WARNING this is accepted in the current edition
|
2018-08-22 20:07:27 +00:00
|
|
|
|
|
|
|
fn bar_with_default_impl(_: String, _: String) {}
|
|
|
|
//~^ WARNING anonymous parameters are deprecated
|
2021-06-16 12:27:44 +00:00
|
|
|
//~| WARNING this is accepted in the current edition
|
2018-08-22 20:07:27 +00:00
|
|
|
//~| WARNING anonymous parameters are deprecated
|
2021-06-16 12:27:44 +00:00
|
|
|
//~| WARNING this is accepted in the current edition
|
2018-08-22 20:07:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|