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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
293 B
Rust
Raw Normal View History

#[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() {}