Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
const-fn-stability-calls-3.rs
blob: 7a9576f1f9d03d133b2796920db90e6a02ee58a9 [
file
] [
log
] [
blame
] [
edit
]
// 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
}