early tests

This commit is contained in:
Zaki Manian 2017-09-03 08:56:34 -07:00
parent 0233d9b0e7
commit 33e86407fd
2 changed files with 14 additions and 0 deletions

14
tests/ui/is_unit_expr.rs Normal file
View file

@ -0,0 +1,14 @@
#![feature(plugin)]
#[plugin(clippy)]
#[warn(unit_expr)]
#[allow(unused_variables)]
#[allow(no_effect)]
fn main() {
let x = {
"foo";
"baz";
};
}

View file