Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
nll
/
user-annotations
/
promoted-annotation.rs
blob: b92f8bfd23b234ce2cb7e0dc5c506e46ed7b6c00 [
file
] [
log
] [
blame
]
// Test that type annotations are checked in promoted constants correctly.
fn
foo
<
'
a
>()
{
let
x
=
0
;
let
f
=
&
drop
::<&
'
a i32
>;
f
(&
x
);
//~^ ERROR `x` does not live long enough
}
fn
main
()
{}