diff options
Diffstat (limited to 'src/test/ui/borrowck/issue-93093.rs')
-rw-r--r-- | src/test/ui/borrowck/issue-93093.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/borrowck/issue-93093.rs b/src/test/ui/borrowck/issue-93093.rs deleted file mode 100644 index f4db5ecaf..000000000 --- a/src/test/ui/borrowck/issue-93093.rs +++ /dev/null @@ -1,14 +0,0 @@ -// edition:2018 -struct S { - foo: usize, -} -impl S { - async fn bar(&self) { //~ HELP consider changing this to be a mutable reference - //~| SUGGESTION &mut self - self.foo += 1; //~ ERROR cannot assign to `self.foo`, which is behind a `&` reference [E0594] - } -} - -fn main() { - S { foo: 1 }.bar(); -} |