]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-56164.stderr
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / issue-56164.stderr
1 error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants
2   --> $DIR/issue-56164.rs:3:18
3    |
4 LL | const fn foo() { (||{})() }
5    |                  ^^^^^^^^
6
7 error: function pointers are not allowed in const fn
8   --> $DIR/issue-56164.rs:8:5
9    |
10 LL |     input()
11    |     ^^^^^^^
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0015`.