2018-08-22 15:07:27 -05:00
|
|
|
#![warn(anonymous_parameters)]
|
2017-05-02 04:38:46 +02:00
|
|
|
// Test for the anonymous_parameters deprecation lint (RFC 1685)
|
|
|
|
|
2018-08-22 15:07:27 -05:00
|
|
|
// compile-pass
|
|
|
|
// edition:2015
|
|
|
|
// run-rustfix
|
|
|
|
|
2017-05-02 04:38:46 +02:00
|
|
|
trait T {
|
2018-08-22 15:07:27 -05:00
|
|
|
fn foo(i32); //~ WARNING anonymous parameters are deprecated
|
2017-05-02 04:38:46 +02:00
|
|
|
//~| WARNING hard error
|
|
|
|
|
|
|
|
fn bar_with_default_impl(String, String) {}
|
2018-08-22 15:07:27 -05:00
|
|
|
//~^ WARNING anonymous parameters are deprecated
|
2017-05-02 04:38:46 +02:00
|
|
|
//~| WARNING hard error
|
2018-08-22 15:07:27 -05:00
|
|
|
//~| WARNING anonymous parameters are deprecated
|
2017-05-02 04:38:46 +02:00
|
|
|
//~| WARNING hard error
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|