]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/mem_replace.stderr
Auto merge of #3653 - gendx:master, r=phansch
[rust.git] / tests / ui / mem_replace.stderr
index 8385fa3cb3c804438e3322cd29b09d762f3db21a..791c4d71dbfc8485f3d803f5f4bd791f51a5ab79 100644 (file)
@@ -1,15 +1,15 @@
 error: replacing an `Option` with `None`
--> $DIR/mem_replace.rs:8:13
-  |
-8 |     let _ = mem::replace(&mut an_option, None);
-  |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Option::take()` instead: `an_option.take()`
-  |
-  = note: `-D clippy::mem-replace-option-with-none` implied by `-D warnings`
 --> $DIR/mem_replace.rs:18:13
+   |
+LL |     let _ = mem::replace(&mut an_option, None);
+   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Option::take()` instead: `an_option.take()`
+   |
+   = note: `-D clippy::mem-replace-option-with-none` implied by `-D warnings`
 
 error: replacing an `Option` with `None`
-  --> $DIR/mem_replace.rs:10:13
+  --> $DIR/mem_replace.rs:20:13
    |
-10 |     let _ = mem::replace(an_option, None);
+LL |     let _ = mem::replace(an_option, None);
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Option::take()` instead: `an_option.take()`
 
 error: aborting due to 2 previous errors