Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
consts
/
const-fn-stability-calls-3.rs
blob: b831dee580c1a566dc6ccd7db5880d8eab97b610 [
file
] [
log
] [
blame
]
// 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
}