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