Sign in
fuchsia
/
third_party
/
rust
/
2bde39b8edce6463e1c37f8a8082a875e7b536b1
/
.
/
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
();
}