mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
19 lines
261 B
Rust
19 lines
261 B
Rust
#![feature(plugin)]
|
|
#![plugin(clippy)]
|
|
#![deny(items_after_statements)]
|
|
|
|
fn ok() {
|
|
fn foo() { println!("foo"); }
|
|
foo();
|
|
}
|
|
|
|
fn last() {
|
|
foo();
|
|
fn foo() { println!("foo"); }
|
|
}
|
|
|
|
fn main() {
|
|
foo();
|
|
fn foo() { println!("foo"); }
|
|
foo();
|
|
}
|