fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants 2 --> $DIR/issue-56164.rs:3:18 3 | 4LL | const fn foo() { (||{})() } 5 | ^^^^^^^^ 6 7error: function pointers are not allowed in const fn 8 --> $DIR/issue-56164.rs:8:5 9 | 10LL | input() 11 | ^^^^^^^ 12 13error: aborting due to 2 previous errors 14 15For more information about this error, try `rustc --explain E0015`.