Add regression test for #28935
This commit is contained in:
parent
1c80ac003b
commit
9ff4d34923
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…
x
Reference in New Issue
Block a user