summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0055.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0055.rs')
-rw-r--r--tests/ui/error-codes/E0055.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0055.rs b/tests/ui/error-codes/E0055.rs
new file mode 100644
index 000000000..fd5804bbc
--- /dev/null
+++ b/tests/ui/error-codes/E0055.rs
@@ -0,0 +1,13 @@
+#![recursion_limit="4"]
+struct Foo;
+
+impl Foo {
+ fn foo(&self) {}
+}
+
+fn main() {
+ let foo = Foo;
+ let ref_foo = &&&&&Foo;
+ ref_foo.foo();
+ //~^ ERROR E0055
+}