blob: 85b7fc5cdba49cdd9f73046199967772a44020ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![deny(patterns_in_fns_without_body)]
trait Tr {
fn f1(mut arg: u8); //~ ERROR patterns aren't allowed in functions without bodies
//~^ WARN was previously accepted
fn f2(&arg: u8); //~ ERROR patterns aren't allowed in functions without bodies
fn g1(arg: u8); // OK
fn g2(_: u8); // OK
#[allow(anonymous_parameters)]
fn g3(u8); // OK
}
fn main() {}
|