2025-03-29 17:24:03 +00:00
|
|
|
#[cfg(false)]
|
2020-02-15 19:04:20 -05:00
|
|
|
fn if_else_parse_error() {
|
|
|
|
|
if true {
|
|
|
|
|
} #[attr] else if false { //~ ERROR expected
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-29 17:24:03 +00:00
|
|
|
#[cfg(false)]
|
2020-02-15 19:04:20 -05:00
|
|
|
fn else_attr_ifparse_error() {
|
|
|
|
|
if true {
|
2020-03-07 17:16:29 +01:00
|
|
|
} else #[attr] if false { //~ ERROR outer attributes are not allowed
|
2020-02-15 19:04:20 -05:00
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-29 17:24:03 +00:00
|
|
|
#[cfg(false)]
|
2020-02-15 19:04:20 -05:00
|
|
|
fn else_parse_error() {
|
|
|
|
|
if true {
|
|
|
|
|
} else if false {
|
|
|
|
|
} #[attr] else { //~ ERROR expected
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
}
|