2020-02-01 23:49:52 +00:00
|
|
|
#![warn(clippy::fn_params_excessive_bools)]
|
2021-07-21 03:23:22 +00:00
|
|
|
#![allow(clippy::too_many_arguments)]
|
2020-02-01 23:49:52 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
fn f(_: bool, _: bool, _: bool, _: bool);
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! foo {
|
|
|
|
() => {
|
|
|
|
fn fff(_: bool, _: bool, _: bool, _: bool) {}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
foo!();
|
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
extern "C" fn k(_: bool, _: bool, _: bool, _: bool) {}
|
|
|
|
fn g(_: bool, _: bool, _: bool, _: bool) {}
|
|
|
|
fn h(_: bool, _: bool, _: bool) {}
|
|
|
|
fn e(_: S, _: S, _: Box<S>, _: Vec<u32>) {}
|
|
|
|
fn t(_: S, _: S, _: Box<S>, _: Vec<u32>, _: bool, _: bool, _: bool, _: bool) {}
|
|
|
|
|
2022-03-27 12:41:09 +00:00
|
|
|
struct S;
|
2020-02-01 23:49:52 +00:00
|
|
|
trait Trait {
|
|
|
|
fn f(_: bool, _: bool, _: bool, _: bool);
|
|
|
|
fn g(_: bool, _: bool, _: bool, _: Vec<u32>);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl S {
|
|
|
|
fn f(&self, _: bool, _: bool, _: bool, _: bool) {}
|
|
|
|
fn g(&self, _: bool, _: bool, _: bool) {}
|
|
|
|
#[no_mangle]
|
|
|
|
extern "C" fn h(_: bool, _: bool, _: bool, _: bool) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Trait for S {
|
|
|
|
fn f(_: bool, _: bool, _: bool, _: bool) {}
|
|
|
|
fn g(_: bool, _: bool, _: bool, _: Vec<u32>) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
fn n(_: bool, _: u32, _: bool, _: Box<u32>, _: bool, _: bool) {
|
|
|
|
fn nn(_: bool, _: bool, _: bool, _: bool) {}
|
|
|
|
}
|
|
|
|
}
|