]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-fn-stability-calls-3.rs
Rollup merge of #107004 - compiler-errors:new-solver-new-candidates-2, r=lcnr
[rust.git] / tests / ui / consts / const-fn-stability-calls-3.rs
1 // Test use of const fn from another crate without a feature gate.
2
3 // check-pass
4 // aux-build:const_fn_lib.rs
5
6 extern crate const_fn_lib;
7
8 use const_fn_lib::foo;
9
10 fn main() {
11     let x = foo(); // use outside a constant is ok
12 }