Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
consts
/
promote_fn_calls.rs
blob: 045322de3470820ed61789bd5ddcf5d038d93b4d [
file
] [
log
] [
blame
]
// compile-pass
// aux-build:promotable_const_fn_lib.rs
#![
feature
(
nll
)]
extern
crate promotable_const_fn_lib
;
use
promotable_const_fn_lib
::{
foo
,
Foo
};
fn
main
()
{
let
x
:
&
'
static
usize
=
&
foo
();
let
x
:
&
'
static
usize
=
&
Foo
::
foo
();
}