]> git.lizzy.rs Git - rust.git/blob - src/test/ui/if-attrs/else-attrs.rs
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / test / ui / if-attrs / else-attrs.rs
1 #[cfg(FALSE)]
2 fn if_else_parse_error() {
3     if true {
4     } #[attr] else if false { //~ ERROR expected
5     }
6 }
7
8 #[cfg(FALSE)]
9 fn else_attr_ifparse_error() {
10     if true {
11     } else #[attr] if false { //~ ERROR outer attributes are not allowed
12     } else {
13     }
14 }
15
16 #[cfg(FALSE)]
17 fn else_parse_error() {
18     if true {
19     } else if false {
20     } #[attr] else { //~ ERROR expected
21     }
22 }
23
24 fn main() {
25 }