mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 08:57:30 +00:00
87fa2d90f5
Lint redundant_semicolon was added to rustc
16 lines
203 B
Rust
16 lines
203 B
Rust
#![feature(stmt_expr_attributes)]
|
|
#![allow(redundant_semicolon)]
|
|
|
|
#[rustfmt::skip]
|
|
fn main() {
|
|
#[clippy::author]
|
|
{
|
|
;;;;
|
|
}
|
|
}
|
|
|
|
#[clippy::author]
|
|
fn foo() {
|
|
let x = 42i32;
|
|
-x;
|
|
}
|