]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-fn-stability-calls-3.rs
Rollup merge of #64067 - Mark-Simulacrum:valgrind-dyn, r=alexcrichton
[rust.git] / src / test / ui / consts / const-fn-stability-calls-3.rs
index 44bcca8d8023a434b3ab7b7c9c5862c7e4745fcd..b831dee580c1a566dc6ccd7db5880d8eab97b610 100644 (file)
@@ -1,15 +1,12 @@
 // Test use of const fn from another crate without a feature gate.
 
-// compile-pass
-// skip-codegen
-#![allow(unused_variables)]
+// check-pass
 // aux-build:const_fn_lib.rs
 
 extern crate const_fn_lib;
 
 use const_fn_lib::foo;
 
-
 fn main() {
     let x = foo(); // use outside a constant is ok
 }