Sign in
fuchsia
/
third_party
/
rust
/
61fae230e626bd46e8043ba55bae861d824ea6b5
/
.
/
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
}