]> git.lizzy.rs Git - rust.git/blob - tests/ui/item_after_statement.stderr
Merge pull request #1520 from Manishearth/rustup
[rust.git] / tests / ui / item_after_statement.stderr
1 error: adding items after statements is confusing, since items exist from the start of the scope
2   --> $DIR/item_after_statement.rs:12:5
3    |
4 12 |     fn foo() { println!("foo"); }
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/item_after_statement.rs:3:9
9    |
10 3  | #![deny(items_after_statements)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^
12
13 error: adding items after statements is confusing, since items exist from the start of the scope
14   --> $DIR/item_after_statement.rs:17:5
15    |
16 17 |     fn foo() { println!("foo"); }
17    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20