Files
rust/tests/ui/rfcs/rfc-2565-param-attrs/attr-without-param.rs

17 lines
293 B
Rust
Raw Normal View History

2025-03-29 17:24:03 +00:00
#[cfg(false)]
impl S {
fn f(#[attr]) {} //~ ERROR expected parameter name, found `)`
}
2025-03-29 17:24:03 +00:00
#[cfg(false)]
impl T for S {
fn f(#[attr]) {} //~ ERROR expected parameter name, found `)`
}
2025-03-29 17:24:03 +00:00
#[cfg(false)]
trait T {
fn f(#[attr]); //~ ERROR expected argument name, found `)`
}
fn main() {}