mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 08:30:45 +00:00
16 lines
223 B
Rust
16 lines
223 B
Rust
#![feature(stmt_expr_attributes)]
|
|
#![allow(redundant_semicolons, clippy::no_effect)]
|
|
|
|
#[rustfmt::skip]
|
|
fn main() {
|
|
#[clippy::author]
|
|
{
|
|
;;;;
|
|
}
|
|
}
|
|
|
|
#[clippy::author]
|
|
fn foo() {
|
|
let x = 42i32;
|
|
-x;
|
|
}
|