Skip to content

Commit cc357bd

Browse files
authored
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`
2 parents a56211a + 9ff4d34 commit cc357bd

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)