mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 11:13:43 +00:00
20 lines
367 B
Rust
20 lines
367 B
Rust
#![feature(plugin)]
|
|
#![plugin(clippy)]
|
|
#![deny(items_after_statements)]
|
|
|
|
fn ok() {
|
|
fn foo() { println!("foo"); }
|
|
foo();
|
|
}
|
|
|
|
fn last() {
|
|
foo();
|
|
fn foo() { println!("foo"); } //~ ERROR adding items after statements is confusing
|
|
}
|
|
|
|
fn main() {
|
|
foo();
|
|
fn foo() { println!("foo"); } //~ ERROR adding items after statements is confusing
|
|
foo();
|
|
}
|