summaryrefslogtreecommitdiffstats
path: root/src/test/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs')
-rw-r--r--src/test/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs b/src/test/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs
new file mode 100644
index 000000000..874f42282
--- /dev/null
+++ b/src/test/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs
@@ -0,0 +1,18 @@
+// run-pass
+#![allow(dead_code)]
+// pretty-expanded FIXME #23616
+
+struct Foo {
+ x: isize,
+}
+
+impl Foo {
+ pub fn f(&self) {}
+}
+
+fn g(x: &mut Foo) {
+ x.f();
+}
+
+pub fn main() {
+}