]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-37550-1.rs
Rollup merge of #90022 - hkmatsumoto:self-upper-as-generic-parameter, r=jackh726
[rust.git] / src / test / ui / consts / issue-37550-1.rs
1 const fn x() {
2     let t = true;
3     let x = || t; //~ ERROR function pointer
4 }
5
6 fn main() {}