]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/consts/const-eval/const_fn_ptr.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / const_fn_ptr.rs
index 498f801db81b88ad7e65e326c3bb29ed6798adb3..9b94b45f52264c44057c78d0e0e7036d7bfc57f8 100644 (file)
@@ -6,18 +6,18 @@ fn double(x: usize) -> usize { x * 2 }
 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() {