Skip to content

Commit 9ff4d34

Browse files
committed
Add regression test for #28935
1 parent 1c80ac0 commit 9ff4d34

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/ui/inference/issue-28935.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// check-pass
2+
3+
use std::cell::RefCell;
4+
5+
pub fn f(v: Vec<RefCell<u8>>) {
6+
let _t = &mut *v[0].borrow_mut();
7+
}
8+
9+
fn main() {}

0 commit comments

Comments
 (0)