]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/ref-suggestion.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / ref-suggestion.rs
index 815f75266322354be33e7e7d0742778020d17d98..4625669d5ecfe6b15b7a5ebe37c3288d20bdd4e3 100644 (file)
@@ -14,12 +14,14 @@ fn main() {
     //~^ HELP use a `ref` binding as shown
     //~| SUGGESTION let ref y = x;
     x; //~ ERROR use of moved value
+    //~^ HELP run `rustc --explain E0382` to see a detailed explanation
 
     let x = vec![1];
     let mut y = x;
     //~^ HELP use a `ref` binding as shown
     //~| SUGGESTION let ref mut y = x;
     x; //~ ERROR use of moved value
+    //~^ HELP run `rustc --explain E0382` to see a detailed explanation
 
     let x = (Some(vec![1]), ());
 
@@ -30,4 +32,5 @@ fn main() {
         _ => {},
     }
     x; //~ ERROR use of partially moved value
+    //~^ HELP run `rustc --explain E0382` to see a detailed explanation
 }