]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/suggestions/mut-ref-reassignment.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / suggestions / mut-ref-reassignment.stderr
index 66b78a1b140155c737bf78bb7b497f104ceb8b55..e7748008494c08719092d946dabf76dfb17da66a 100644 (file)
@@ -4,8 +4,8 @@ error[E0308]: mismatched types
 LL |     opt = None;
    |           ^^^^ expected mutable reference, found enum `std::option::Option`
    |
-   = note: expected type `&mut std::option::Option<std::string::String>`
-              found type `std::option::Option<_>`
+   = note: expected mutable reference `&mut std::option::Option<std::string::String>`
+                           found enum `std::option::Option<_>`
 help: consider dereferencing here to assign to the mutable borrowed piece of memory
    |
 LL |     *opt = None;
@@ -17,8 +17,8 @@ error[E0308]: mismatched types
 LL |     opt = None
    |           ^^^^ expected mutable reference, found enum `std::option::Option`
    |
-   = note: expected type `&mut std::result::Result<std::string::String, ()>`
-              found type `std::option::Option<_>`
+   = note: expected mutable reference `&mut std::result::Result<std::string::String, ()>`
+                           found enum `std::option::Option<_>`
 
 error[E0308]: mismatched types
   --> $DIR/mut-ref-reassignment.rs:10:11
@@ -26,8 +26,8 @@ error[E0308]: mismatched types
 LL |     opt = Some(String::new())
    |           ^^^^^^^^^^^^^^^^^^^ expected mutable reference, found enum `std::option::Option`
    |
-   = note: expected type `&mut std::option::Option<std::string::String>`
-              found type `std::option::Option<std::string::String>`
+   = note: expected mutable reference `&mut std::option::Option<std::string::String>`
+                           found enum `std::option::Option<std::string::String>`
 help: consider dereferencing here to assign to the mutable borrowed piece of memory
    |
 LL |     *opt = Some(String::new())
@@ -39,8 +39,8 @@ error[E0308]: mismatched types
 LL |     opt = Some(42)
    |           ^^^^^^^^ expected mutable reference, found enum `std::option::Option`
    |
-   = note: expected type `&mut std::option::Option<std::string::String>`
-              found type `std::option::Option<{integer}>`
+   = note: expected mutable reference `&mut std::option::Option<std::string::String>`
+                           found enum `std::option::Option<{integer}>`
 
 error: aborting due to 4 previous errors