@@ -26,7 +26,7 @@ LL | static STATIC11: Vec<MyOwned> = vec![MyOwned];
2626 | ^^^^^^^^^^^^^
2727 |
2828 = note: calls in statics are limited to constant functions, tuple structs and tuple variants
29- = note: consider wrapping this expression in `Lazy:: new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
29+ = note: consider wrapping this expression in `std::sync::LazyLock:: new(|| ...)`
3030 = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
3131
3232error[E0015]: cannot call non-const fn `<str as ToString>::to_string` in statics
@@ -37,7 +37,7 @@ LL | field2: SafeEnum::Variant4("str".to_string()),
3737 |
3838 = note: calls in statics are limited to constant functions, tuple structs and tuple variants
3939 = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
40- = note: consider wrapping this expression in `Lazy:: new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
40+ = note: consider wrapping this expression in `std::sync::LazyLock:: new(|| ...)`
4141
4242error[E0010]: allocations are not allowed in statics
4343 --> $DIR/check-static-values-constraints.rs:96:5
@@ -54,7 +54,7 @@ LL | vec![MyOwned],
5454 | ^^^^^^^^^^^^^
5555 |
5656 = note: calls in statics are limited to constant functions, tuple structs and tuple variants
57- = note: consider wrapping this expression in `Lazy:: new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
57+ = note: consider wrapping this expression in `std::sync::LazyLock:: new(|| ...)`
5858 = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
5959
6060error[E0010]: allocations are not allowed in statics
@@ -72,7 +72,7 @@ LL | vec![MyOwned],
7272 | ^^^^^^^^^^^^^
7373 |
7474 = note: calls in statics are limited to constant functions, tuple structs and tuple variants
75- = note: consider wrapping this expression in `Lazy:: new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
75+ = note: consider wrapping this expression in `std::sync::LazyLock:: new(|| ...)`
7676 = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
7777
7878error[E0010]: allocations are not allowed in statics
@@ -90,7 +90,7 @@ LL | &vec![MyOwned],
9090 | ^^^^^^^^^^^^^
9191 |
9292 = note: calls in statics are limited to constant functions, tuple structs and tuple variants
93- = note: consider wrapping this expression in `Lazy:: new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
93+ = note: consider wrapping this expression in `std::sync::LazyLock:: new(|| ...)`
9494 = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
9595
9696error[E0010]: allocations are not allowed in statics
@@ -108,7 +108,7 @@ LL | &vec![MyOwned],
108108 | ^^^^^^^^^^^^^
109109 |
110110 = note: calls in statics are limited to constant functions, tuple structs and tuple variants
111- = note: consider wrapping this expression in `Lazy:: new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
111+ = note: consider wrapping this expression in `std::sync::LazyLock:: new(|| ...)`
112112 = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
113113
114114error[E0010]: allocations are not allowed in statics
@@ -126,7 +126,7 @@ LL | static STATIC19: Vec<isize> = vec![3];
126126 | ^^^^^^^
127127 |
128128 = note: calls in statics are limited to constant functions, tuple structs and tuple variants
129- = note: consider wrapping this expression in `Lazy:: new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
129+ = note: consider wrapping this expression in `std::sync::LazyLock:: new(|| ...)`
130130 = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
131131
132132error[E0010]: allocations are not allowed in statics
@@ -144,7 +144,7 @@ LL | static x: Vec<isize> = vec![3];
144144 | ^^^^^^^
145145 |
146146 = note: calls in statics are limited to constant functions, tuple structs and tuple variants
147- = note: consider wrapping this expression in `Lazy:: new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
147+ = note: consider wrapping this expression in `std::sync::LazyLock:: new(|| ...)`
148148 = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
149149
150150error[E0507]: cannot move out of static item `x`
0 commit comments