diff options
Diffstat (limited to 'src/test/ui/borrowck/issue-69789-iterator-mut-suggestion.rs')
-rw-r--r-- | src/test/ui/borrowck/issue-69789-iterator-mut-suggestion.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/borrowck/issue-69789-iterator-mut-suggestion.rs b/src/test/ui/borrowck/issue-69789-iterator-mut-suggestion.rs deleted file mode 100644 index f6d0e9e04..000000000 --- a/src/test/ui/borrowck/issue-69789-iterator-mut-suggestion.rs +++ /dev/null @@ -1,11 +0,0 @@ -// Regression test for #69789: rustc generated an invalid suggestion -// when `&` reference from `&mut` iterator is mutated. - -fn main() { - for item in &mut std::iter::empty::<&'static ()>() { - //~^ NOTE this iterator yields `&` references - *item = (); - //~^ ERROR cannot assign - //~| NOTE cannot be written - } -} |