Add regression test for #28935

This commit is contained in:
Yuki Okushi 2022-05-13 22:04:47 +09:00
parent 1c80ac003b
commit 9ff4d34923
No known key found for this signature in database
GPG Key ID: 379CEEFDD63E5DD7

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