summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2565-param-attrs/attr-without-param.rs
blob: eeb2191bab46254f76c0fb7ab8055e69a750f8f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[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() {}