1 error[E0015]: cannot call non-const fn `invalid` in constants
2 --> $DIR/issue-32829-2.rs:10:9
7 = note: calls in constants are limited to constant functions, tuple structs and tuple variants
9 error[E0015]: cannot call non-const fn `invalid` in statics
10 --> $DIR/issue-32829-2.rs:32:9
15 = note: calls in statics are limited to constant functions, tuple structs and tuple variants
16 = note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
18 error[E0015]: cannot call non-const fn `invalid` in statics
19 --> $DIR/issue-32829-2.rs:54:9
24 = note: calls in statics are limited to constant functions, tuple structs and tuple variants
25 = note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
27 error: aborting due to 3 previous errors
29 For more information about this error, try `rustc --explain E0015`.