mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
early tests
This commit is contained in:
parent
0233d9b0e7
commit
33e86407fd
2 changed files with 14 additions and 0 deletions
14
tests/ui/is_unit_expr.rs
Normal file
14
tests/ui/is_unit_expr.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
#![feature(plugin)]
|
||||
#[plugin(clippy)]
|
||||
#[warn(unit_expr)]
|
||||
#[allow(unused_variables)]
|
||||
#[allow(no_effect)]
|
||||
|
||||
fn main() {
|
||||
let x = {
|
||||
"foo";
|
||||
"baz";
|
||||
};
|
||||
|
||||
}
|
0
tests/ui/is_unit_expr.stderr
Normal file
0
tests/ui/is_unit_expr.stderr
Normal file
Loading…
Reference in a new issue