]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | #![warn(anonymous_parameters)] |
2 | // Test for the anonymous_parameters deprecation lint (RFC 1685) | |
3 | ||
f9f354fc | 4 | // check-pass |
b7449926 XL |
5 | // edition:2015 |
6 | // run-rustfix | |
7 | ||
8 | trait T { | |
9 | fn foo(i32); //~ WARNING anonymous parameters are deprecated | |
136023e0 | 10 | //~| WARNING this is accepted in the current edition |
b7449926 XL |
11 | |
12 | fn bar_with_default_impl(String, String) {} | |
13 | //~^ WARNING anonymous parameters are deprecated | |
136023e0 | 14 | //~| WARNING this is accepted in the current edition |
b7449926 | 15 | //~| WARNING anonymous parameters are deprecated |
136023e0 | 16 | //~| WARNING this is accepted in the current edition |
b7449926 XL |
17 | } |
18 | ||
19 | fn main() {} |