rust/tests/ui/rfc-2565-param-attrs/attr-without-param.rs
2023-01-11 09:32:08 +00:00

17 lines
293 B
Rust

#[cfg(FALSE)]
impl S {
fn f(#[attr]) {} //~ ERROR expected parameter name, found `)`
}
#[cfg(FALSE)]
impl T for S {
fn f(#[attr]) {} //~ ERROR expected parameter name, found `)`
}
#[cfg(FALSE)]
trait T {
fn f(#[attr]); //~ ERROR expected argument name, found `)`
}
fn main() {}