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:
commit
cc357bd000
1 changed files with 9 additions and 0 deletions
9
src/test/ui/inference/issue-28935.rs
Normal file
9
src/test/ui/inference/issue-28935.rs
Normal 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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue