Sign in
fuchsia
/
third_party
/
rust
/
8ae7c743bbc6e6281c5aa892daaaa5439aafc1db
/
.
/
tests
/
ui
/
generator
/
issue-110929-generator-conflict-error-ice.rs
blob: a45479e5300d8faab6b458fa2dff64b8efc233ad [
file
] [
log
] [
blame
]
// edition:2021
#![
feature
(
generators
)]
fn
main
()
{
let
x
=
&
mut
();
||
{
let
_c
=
||
yield
*&
mut
*
x
;
||
_
=
&
mut
*
x
;
//~^ cannot borrow `*x` as mutable more than once at a time
};
}