summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/min_const_fn/bad_const_fn_body_ice.rs
blob: 258997597ea9d91f8228ac5c61bbaf4e6bbb233e (plain)
1
2
3
4
5
6
7
const fn foo(a: i32) -> Vec<i32> {
    vec![1, 2, 3]
    //~^ ERROR allocations are not allowed
    //~| ERROR cannot call non-const fn
}

fn main() {}