about summary refs log tree commit diff
path: root/tests/ui/consts/const-fn-stability-calls-3.rs
blob: 7a9576f1f9d03d133b2796920db90e6a02ee58a9 (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
}