]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2565-param-attrs/attr-without-param.rs
Rollup merge of #106707 - ehuss:remove-dupe-sha-1, r=Mark-Simulacrum
[rust.git] / tests / 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() {}