mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 02:40:45 +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() {}
|