]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2565-param-attrs/attr-without-param.rs
Merge commit 'a8385522ade6f67853edac730b5bf164ddb298fd' into simd-remove-autosplats
[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() {}