about summary refs log tree commit diff
path: root/tests/ui/rfcs/rfc-2565-param-attrs/attr-without-param.rs
blob: c0f17570673ce46e1797f01f6a6aabbb7b37dc08 (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() {}