Skip to content

Commit

Permalink
Rollup merge of #97011 - JohnTitor:issue-28935, r=compiler-errors
Browse files Browse the repository at this point in the history
Add regression test for #28935

Closes #28935, one of the ancient issues can be closed :)
r? `@compiler-errors`
  • Loading branch information
matthiaskrgr authored May 13, 2022
2 parents a56211a + 9ff4d34 commit cc357bd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/ui/inference/issue-28935.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// check-pass

use std::cell::RefCell;

pub fn f(v: Vec<RefCell<u8>>) {
let _t = &mut *v[0].borrow_mut();
}

fn main() {}

0 comments on commit cc357bd

Please sign in to comment.