const fn double_const(x: usize) -> usize { x * 2 }
const X: fn(usize) -> usize = double;
-const X_const: fn(usize) -> usize = double_const;
+const X_CONST: fn(usize) -> usize = double_const;
const fn bar(x: usize) -> usize {
- X(x)
+ X(x) //~ WARNING skipping const checks
}
const fn bar_const(x: usize) -> usize {
- X_const(x)
+ X_CONST(x) //~ WARNING skipping const checks
}
const fn foo(x: fn(usize) -> usize, y: usize) -> usize {
- x(y)
+ x(y) //~ WARNING skipping const checks
}
fn main() {