summary refs log tree commit diff
path: root/src/test/ui/anon-params-deprecated.fixed
blob: 7eee47dcb5fc7e801eaf89a8c20b28df46f2455e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#![warn(anonymous_parameters)]
// Test for the anonymous_parameters deprecation lint (RFC 1685)

// compile-pass
// edition:2015
// run-rustfix

trait T {
    fn foo(_: i32); //~ WARNING anonymous parameters are deprecated
                 //~| WARNING hard error

    fn bar_with_default_impl(_: String, _: String) {}
    //~^ WARNING anonymous parameters are deprecated
    //~| WARNING hard error
    //~| WARNING anonymous parameters are deprecated
    //~| WARNING hard error
}

fn main() {}