]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-fn-stability-calls-3.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / consts / const-fn-stability-calls-3.rs
CommitLineData
62682a34 1// Test use of const fn from another crate without a feature gate.
85aaf69f 2
dc9dc135 3// check-pass
62682a34
SL
4// aux-build:const_fn_lib.rs
5
6extern crate const_fn_lib;
7
8use const_fn_lib::foo;
9
a1dfa0c6 10fn main() {
62682a34
SL
11 let x = foo(); // use outside a constant is ok
12}