Rollup merge of #97011 - JohnTitor:issue-28935, r=compiler-errors

Add regression test for #28935

Closes #28935, one of the ancient issues can be closed :)
r? `@compiler-errors`
This commit is contained in:
Matthias Krüger 2022-05-13 16:03:26 +02:00 committed by GitHub
commit cc357bd000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {}