]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2565-param-attrs/attr-without-param.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / ui / rfc-2565-param-attrs / attr-without-param.rs
1 #[cfg(FALSE)]
2 impl S {
3     fn f(#[attr]) {} //~ ERROR expected parameter name, found `)`
4 }
5
6 #[cfg(FALSE)]
7 impl T for S {
8     fn f(#[attr]) {} //~ ERROR expected parameter name, found `)`
9 }
10
11 #[cfg(FALSE)]
12 trait T {
13     fn f(#[attr]); //~ ERROR expected argument name, found `)`
14 }
15
16 fn main() {}