clean tests/ui/mem_forget.rs

Cleaning the empty lines for clarity.
This commit is contained in:
Luis de Bethencourt 2017-05-11 14:30:44 +01:00
parent 86d5ffae8a
commit 409eea2b51
2 changed files with 4 additions and 7 deletions

View File

@ -17,14 +17,11 @@ fn main() {
let six: Arc<i32> = Arc::new(6);
memstuff::forget(six);
let seven: Rc<i32> = Rc::new(7);
std::mem::forget(seven);
let eight: Vec<i32> = vec![8];
forgetSomething(eight);
std::mem::forget(7);
}

View File

@ -11,15 +11,15 @@ note: lint level defined here
| ^^^^^^^^^^
error: usage of mem::forget on Drop type
--> $DIR/mem_forget.rs:22:5
--> $DIR/mem_forget.rs:21:5
|
22 | std::mem::forget(seven);
21 | std::mem::forget(seven);
| ^^^^^^^^^^^^^^^^^^^^^^^
error: usage of mem::forget on Drop type
--> $DIR/mem_forget.rs:26:5
--> $DIR/mem_forget.rs:24:5
|
26 | forgetSomething(eight);
24 | forgetSomething(eight);
| ^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 3 previous errors