about summary refs log tree commit diff
path: root/src/test/ui/consts
diff options
context:
space:
mode:
authorEric Holk <ericholk@microsoft.com>2022-03-04 11:29:57 -0800
committerEric Holk <ericholk@microsoft.com>2022-03-07 08:47:18 -0800
commitbb6bcaa1deaa0102ffb9fd23e27f427939de43a1 (patch)
tree00d2125e1bddaf17f633f1bd89d09efc14065206 /src/test/ui/consts
parent1afbf3e4b1cbe1eb466da3da2319770db8ff5e9d (diff)
downloadrust-bb6bcaa1deaa0102ffb9fd23e27f427939de43a1.tar.gz
rust-bb6bcaa1deaa0102ffb9fd23e27f427939de43a1.zip
Update tests
Diffstat (limited to 'src/test/ui/consts')
-rw-r--r--src/test/ui/consts/unstable-const-fn-in-libcore.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/consts/unstable-const-fn-in-libcore.stderr b/src/test/ui/consts/unstable-const-fn-in-libcore.stderr
index 3ec9971b8e1..180f9f10cc6 100644
--- a/src/test/ui/consts/unstable-const-fn-in-libcore.stderr
+++ b/src/test/ui/consts/unstable-const-fn-in-libcore.stderr
@@ -1,5 +1,5 @@
 error[E0015]: cannot call non-const closure in constant functions
-  --> $DIR/unstable-const-fn-in-libcore.rs:23:26
+  --> $DIR/unstable-const-fn-in-libcore.rs:22:26
    |
 LL |             Opt::None => f(),
    |                          ^^^
@@ -11,7 +11,7 @@ LL |     const fn unwrap_or_else<F: FnOnce() -> T + ~const std::ops::FnOnce<()>>
    |                                              +++++++++++++++++++++++++++++
 
 error[E0493]: destructors cannot be evaluated at compile-time
-  --> $DIR/unstable-const-fn-in-libcore.rs:18:53
+  --> $DIR/unstable-const-fn-in-libcore.rs:17:53
    |
 LL |     const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
    |                                                     ^ constant functions cannot evaluate destructors
@@ -20,7 +20,7 @@ LL |     }
    |     - value is dropped here
 
 error[E0493]: destructors cannot be evaluated at compile-time
-  --> $DIR/unstable-const-fn-in-libcore.rs:18:47
+  --> $DIR/unstable-const-fn-in-libcore.rs:17:47
    |
 LL |     const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
    |                                               ^^^^ constant functions cannot evaluate destructors