1 fn foo<const N: i32>() -> i32 {
5 const fn bar(n: i32, m: i32) -> i32 {
9 const fn baz() -> i32 {
16 foo::<baz()>(); //~ ERROR expected type, found function `baz`
17 //~| ERROR unresolved item provided when a constant was expected
18 foo::<bar(bar(1, 1), bar(1, 1))>(); //~ ERROR expected type, found `1`
19 foo::<bar(1, 1)>(); //~ ERROR expected type, found `1`
20 foo::<bar(FOO, 2)>(); //~ ERROR expected type, found `2`