fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0015]: cannot call non-const closure in constant functions 2 --> $DIR/issue-56164.rs:1:18 3 | 4LL | const fn foo() { (||{})() } 5 | ^^^^^^^^ 6 | 7 = note: closures need an RFC before allowed to be called in constant functions 8 = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants 9 = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable 10 11error: function pointer calls are not allowed in constant functions 12 --> $DIR/issue-56164.rs:5:5 13 | 14LL | input() 15 | ^^^^^^^ 16 17error: aborting due to 2 previous errors 18 19For more information about this error, try `rustc --explain E0015`.