fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
444 B15 linesraw
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`.