mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
clean tests/ui/mem_forget.rs
Cleaning the empty lines for clarity.
This commit is contained in:
parent
86d5ffae8a
commit
409eea2b51
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user