]> 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 031576dd30830480655873f2b3d10179d6f4abb7..b831dee580c1a566dc6ccd7db5880d8eab97b610 100644 (file)
@@ -1,25 +1,12 @@
-// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 // 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
 }