2016-01-24 03:16:56 -06:00
|
|
|
#![feature(plugin)]
|
|
|
|
#![plugin(clippy)]
|
|
|
|
#![deny(items_after_statements)]
|
|
|
|
|
2016-06-28 08:54:23 -05:00
|
|
|
fn ok() {
|
|
|
|
fn foo() { println!("foo"); }
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn last() {
|
|
|
|
foo();
|
|
|
|
fn foo() { println!("foo"); } //~ ERROR adding items after statements is confusing
|
|
|
|
}
|
|
|
|
|
2016-01-24 03:16:56 -06:00
|
|
|
fn main() {
|
|
|
|
foo();
|
|
|
|
fn foo() { println!("foo"); } //~ ERROR adding items after statements is confusing
|
|
|
|
foo();
|
|
|
|
}
|