about summary refs log tree commit diff
path: root/src/test/ui/static
diff options
context:
space:
mode:
authorMikhail Modin <mikhailm1@gmail.com>2018-09-25 16:24:20 +0100
committerMikhail Modin <mikhailm1@gmail.com>2018-09-25 16:24:20 +0100
commit2af199d58e10374d907d26b671c8b1c2e84ebf9a (patch)
treeb1b934c750d8e4b7842b971573278788a5c641b1 /src/test/ui/static
parentea4d934c32e49bdcf7578e1bb147ce5f62ac5d38 (diff)
downloadrust-2af199d58e10374d907d26b671c8b1c2e84ebf9a.tar.gz
rust-2af199d58e10374d907d26b671c8b1c2e84ebf9a.zip
Update E0714 to E0716 in tests output
Diffstat (limited to 'src/test/ui/static')
-rw-r--r--src/test/ui/static/static-drop-scope.nll.stderr6
-rw-r--r--src/test/ui/static/static-reference-to-fn-2.nll.stderr10
-rw-r--r--src/test/ui/static/static-region-bound.nll.stderr4
3 files changed, 10 insertions, 10 deletions
diff --git a/src/test/ui/static/static-drop-scope.nll.stderr b/src/test/ui/static/static-drop-scope.nll.stderr
index 36c645479dd..a498d80b67b 100644
--- a/src/test/ui/static/static-drop-scope.nll.stderr
+++ b/src/test/ui/static/static-drop-scope.nll.stderr
@@ -4,7 +4,7 @@ error[E0493]: destructors cannot be evaluated at compile-time
 LL | static PROMOTION_FAIL_S: Option<&'static WithDtor> = Some(&WithDtor);
    |                                                            ^^^^^^^^ statics cannot evaluate destructors
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-drop-scope.rs:19:60
    |
 LL | static PROMOTION_FAIL_S: Option<&'static WithDtor> = Some(&WithDtor);
@@ -20,7 +20,7 @@ error[E0493]: destructors cannot be evaluated at compile-time
 LL | const PROMOTION_FAIL_C: Option<&'static WithDtor> = Some(&WithDtor);
    |                                                           ^^^^^^^^ constants cannot evaluate destructors
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-drop-scope.rs:23:59
    |
 LL | const PROMOTION_FAIL_C: Option<&'static WithDtor> = Some(&WithDtor);
@@ -56,5 +56,5 @@ LL |     (x, ()).1
 
 error: aborting due to 8 previous errors
 
-Some errors occurred: E0493, E0714.
+Some errors occurred: E0493, E0716.
 For more information about an error, try `rustc --explain E0493`.
diff --git a/src/test/ui/static/static-reference-to-fn-2.nll.stderr b/src/test/ui/static/static-reference-to-fn-2.nll.stderr
index 3740d9051be..a9ecc14403a 100644
--- a/src/test/ui/static/static-reference-to-fn-2.nll.stderr
+++ b/src/test/ui/static/static-reference-to-fn-2.nll.stderr
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-reference-to-fn-2.rs:28:22
    |
 LL |     self_.statefn = &id(state2 as StateMachineFunc);
@@ -16,7 +16,7 @@ LL | |     return Some("state1");
 LL | | }
    | |_^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-reference-to-fn-2.rs:34:22
    |
 LL |     self_.statefn = &id(state3 as StateMachineFunc);
@@ -34,7 +34,7 @@ LL | |     return Some("state2");
 LL | | }
    | |_^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-reference-to-fn-2.rs:40:22
    |
 LL |     self_.statefn = &id(finished as StateMachineFunc);
@@ -52,7 +52,7 @@ LL | |     return Some("state3");
 LL | | }
    | |_^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-reference-to-fn-2.rs:51:19
    |
 LL |         statefn: &id(state1 as StateMachineFunc)
@@ -65,4 +65,4 @@ LL | }
 
 error: aborting due to 4 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
diff --git a/src/test/ui/static/static-region-bound.nll.stderr b/src/test/ui/static/static-region-bound.nll.stderr
index 3bb763eb1c7..45af062c824 100644
--- a/src/test/ui/static/static-region-bound.nll.stderr
+++ b/src/test/ui/static/static-region-bound.nll.stderr
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-region-bound.rs:20:14
    |
 LL |     let x = &id(3); //~ ERROR borrowed value does not live long enough
@@ -11,4 +11,4 @@ LL | }
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.