]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/suggestions/option-content-move.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / suggestions / option-content-move.rs
index 350486a802d312217dc882c3653ba50f85bc339c..ef38f114eca55f405a73cf6aa7f7fad9052910c6 100644 (file)
@@ -9,7 +9,7 @@ pub fn validate_all(&mut self) -> Result<(), char> {
         for selection in &self.selections {
             if selection.1.is_some() {
                 if selection.1.unwrap().contains(selection.0) {
-                //~^ ERROR cannot move out of borrowed content
+                //~^ ERROR cannot move out of `selection.1`
                     return Err(selection.0);
                 }
             }
@@ -27,7 +27,7 @@ pub fn validate_all(&mut self) -> Result<(), char> {
         for selection in &self.selections {
             if selection.1.is_ok() {
                 if selection.1.unwrap().contains(selection.0) {
-                //~^ ERROR cannot move out of borrowed content
+                //~^ ERROR cannot move out of `selection.1`
                     return Err(selection.0);
                 }
             }