about summary refs log tree commit diff
path: root/src/test/ui/anon-params-deprecated.rs
blob: dc0357721ec73bf6ba559da92b3b0c7c9cea5ca8 (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)

// build-pass (FIXME(62277): could be check-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() {}