mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
17 lines
222 B
Rust
17 lines
222 B
Rust
#![feature(stmt_expr_attributes)]
|
|
#![allow(redundant_semicolon, clippy::no_effect)]
|
|
|
|
#[rustfmt::skip]
|
|
fn main() {
|
|
#[clippy::author]
|
|
{
|
|
;;;;
|
|
}
|
|
}
|
|
|
|
#[clippy::author]
|
|
fn foo() {
|
|
let x = 42i32;
|
|
-x;
|
|
}
|