rust/tests/ui/expr/if/attrs/else-attrs.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
404 B
Rust
Raw Normal View History

#[cfg(FALSE)]
fn if_else_parse_error() {
if true {
} #[attr] else if false { //~ ERROR expected
}
}
#[cfg(FALSE)]
fn else_attr_ifparse_error() {
if true {
2020-03-07 10:16:29 -06:00
} else #[attr] if false { //~ ERROR outer attributes are not allowed
} else {
}
}
#[cfg(FALSE)]
fn else_parse_error() {
if true {
} else if false {
} #[attr] else { //~ ERROR expected
}
}
fn main() {
}