summary refs log tree commit diff
path: root/src/test/ui/consts/issue-56164.rs
blob: 90ea217698d6572f8040208d9f238c2e2d90d0d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(const_fn_fn_ptr_basics)]

const fn foo() { (||{})() }
//~^ ERROR calls in constant functions

const fn bad(input: fn()) {
    input()
    //~^ ERROR function pointer
}

fn main() {
}