summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-fn-stability-calls-3.rs
blob: b831dee580c1a566dc6ccd7db5880d8eab97b610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test use of const fn from another crate without a feature gate.

// 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
}