mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 06:35:27 +00:00
early tests
This commit is contained in:
parent
0233d9b0e7
commit
33e86407fd
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 New Issue
Block a user