rust-clippy/tests/ui/item_after_statement.rs
2017-02-08 14:58:07 +01:00

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();
}