Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
issue-46036.rs
blob: 18af33c1821c0d6c7dfa4ba27422643a8eb4b3ff [
file
] [
log
] [
blame
]
// Issue 46036: [NLL] false edges on infinite loops
// Infinite loops should create false edges to the cleanup block.
struct
Foo
{
x
:
&
'
static
u32
}
fn
foo
()
{
let
a
=
3
;
let
foo
=
Foo
{
x
:
&
a
};
//~ ERROR E0597
loop
{
}
}
fn
main
()
{
}