Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
dont_promote_unstable_const_fn_cross_crate.rs
blob: ea35f46807abb94eb89344861b6f38e475921ed2 [
file
] [
log
] [
blame
]
// aux-build:stability.rs
extern
crate stability
;
use
stability
::
foo
;
fn
main
()
{
let
_
:
&
'
static
u32
=
&
foo
();
//~ ERROR temporary value dropped while borrowed
let
_x
:
&
'
static
u32
=
&
foo
();
//~ ERROR temporary value dropped while borrowed
}