]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cfg-attr-trailing-comma.rs
Auto merge of #54599 - nikomatsakis:issue-54593-impl-Trait, r=eddyb
[rust.git] / src / test / ui / cfg-attr-trailing-comma.rs
1 // compile-flags: --cfg TRUE
2
3 #[cfg_attr(TRUE, inline,)] // OK
4 fn f() {}
5
6 #[cfg_attr(FALSE, inline,)] // OK
7 fn g() {}
8
9 #[cfg_attr(TRUE, inline,,)] //~ ERROR expected `)`, found `,`
10 fn h() {}
11
12 #[cfg_attr(FALSE, inline,,)] //~ ERROR expected `)`, found `,`
13 fn i() {}