rust-clippy/tests/compile-fail/item_after_statement.rs

10 lines
196 B
Rust
Raw Normal View History

2016-01-24 09:16:56 +00:00
#![feature(plugin)]
#![plugin(clippy)]
#![deny(items_after_statements)]
fn main() {
foo();
fn foo() { println!("foo"); } //~ ERROR adding items after statements is confusing
foo();
}