]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/cstring.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / cstring.stderr
index 490a655ca262190eb1d13e2948dc956a8867162b..d2968eb9d180e7447bf5efc1fdbc1f9be7eacfef 100644 (file)
@@ -1,7 +1,7 @@
 error: you are getting the inner pointer of a temporary `CString`
   --> $DIR/cstring.rs:16:5
    |
-16 |     CString::new("foo").unwrap().as_ptr();
+LL |     CString::new("foo").unwrap().as_ptr();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[deny(clippy::temporary_cstring_as_ptr)] on by default
@@ -9,7 +9,7 @@ error: you are getting the inner pointer of a temporary `CString`
 help: assign the `CString` to a variable to extend its lifetime
   --> $DIR/cstring.rs:16:5
    |
-16 |     CString::new("foo").unwrap().as_ptr();
+LL |     CString::new("foo").unwrap().as_ptr();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to previous error