]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability2.stderr
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / consts / min_const_fn / min_const_unsafe_fn_libstd_stability2.stderr
index 7cb8c6e62ec60ac3f2dd7c45b642d89bffc3fbaa..e90ba9b912fe1a2abc34c36ef46e99b4072b01c6 100644 (file)
@@ -1,27 +1,26 @@
-error[E0723]: can only call other `min_const_fn` within a `min_const_fn` (see issue #57563)
-  --> $DIR/min_const_unsafe_fn_libstd_stability2.rs:15:32
+error: `foo` is not yet stable as a const fn
+  --> $DIR/min_const_unsafe_fn_libstd_stability2.rs:16:32
    |
-LL | const unsafe fn bar() -> u32 { foo() } //~ ERROR can only call other `min_const_fn`
+LL | const unsafe fn bar() -> u32 { foo() }
    |                                ^^^^^
    |
-   = help: add #![feature(const_fn)] to the crate attributes to enable
+   = help: const-stable functions can only call other const-stable functions
 
-error[E0723]: can only call other `min_const_fn` within a `min_const_fn` (see issue #57563)
-  --> $DIR/min_const_unsafe_fn_libstd_stability2.rs:22:33
+error: `foo2` is not yet stable as a const fn
+  --> $DIR/min_const_unsafe_fn_libstd_stability2.rs:24:33
    |
-LL | const unsafe fn bar2() -> u32 { foo2() } //~ ERROR can only call other `min_const_fn`
+LL | const unsafe fn bar2() -> u32 { foo2() }
    |                                 ^^^^^^
    |
-   = help: add #![feature(const_fn)] to the crate attributes to enable
+   = help: const-stable functions can only call other const-stable functions
 
-error[E0723]: can only call other `min_const_fn` within a `min_const_fn` (see issue #57563)
-  --> $DIR/min_const_unsafe_fn_libstd_stability2.rs:30:39
+error: `foo2_gated` is not yet stable as a const fn
+  --> $DIR/min_const_unsafe_fn_libstd_stability2.rs:33:39
    |
-LL | const unsafe fn bar2_gated() -> u32 { foo2_gated() } //~ ERROR can only call other `min_const_fn`
+LL | const unsafe fn bar2_gated() -> u32 { foo2_gated() }
    |                                       ^^^^^^^^^^^^
    |
-   = help: add #![feature(const_fn)] to the crate attributes to enable
+   = help: const-stable functions can only call other const-stable functions
 
 error: aborting due to 3 previous errors
 
-For more information about this error, try `rustc --explain E0723`.