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

const fn foo() { (||{})() }
//~^ ERROR calls in constant functions are limited to constant functions, tuple structs and tuple
// variants

const fn bad(input: fn()) {
    input()
    //~^ ERROR function pointers are not allowed in const fn
}

fn main() {
}