mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-19 09:33:36 +00:00
3908d86f8a
Co-Authored-By: Philipp Krones <hello@philkrones.com>
15 lines
172 B
Rust
15 lines
172 B
Rust
#![feature(stmt_expr_attributes)]
|
|
|
|
#[rustfmt::skip]
|
|
fn main() {
|
|
#[clippy::author]
|
|
{
|
|
;;;;
|
|
}
|
|
}
|
|
|
|
#[clippy::author]
|
|
fn foo() {
|
|
let x = 42i32;
|
|
-x;
|
|
}
|