summaryrefslogtreecommitdiffstats
path: root/src/test/ui/inference/issue-28935.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/inference/issue-28935.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/inference/issue-28935.rs b/src/test/ui/inference/issue-28935.rs
new file mode 100644
index 000000000..872822dbd
--- /dev/null
+++ b/src/test/ui/inference/issue-28935.rs
@@ -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() {}