mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
38 lines
497 B
Rust
38 lines
497 B
Rust
//@ pp-exact
|
|
|
|
#[cfg(FALSE)]
|
|
fn simple_attr() {
|
|
|
|
#[attr]
|
|
if true {}
|
|
|
|
#[allow_warnings]
|
|
if true {}
|
|
}
|
|
|
|
#[cfg(FALSE)]
|
|
fn if_else_chain() {
|
|
|
|
#[first_attr]
|
|
if true {} else if false {} else {}
|
|
}
|
|
|
|
#[cfg(FALSE)]
|
|
fn if_let() {
|
|
|
|
#[attr]
|
|
if let Some(_) = Some(true) {}
|
|
}
|
|
|
|
#[cfg(FALSE)]
|
|
fn let_attr_if() {
|
|
let _ = #[attr] if let _ = 0 {};
|
|
let _ = #[attr] if true {};
|
|
|
|
let _ = #[attr] if let _ = 0 {} else {};
|
|
let _ = #[attr] if true {} else {};
|
|
}
|
|
|
|
|
|
fn main() {}
|