summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0507.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/error-codes/E0507.rs')
-rw-r--r--src/test/ui/error-codes/E0507.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0507.rs b/src/test/ui/error-codes/E0507.rs
new file mode 100644
index 000000000..bae90a44c
--- /dev/null
+++ b/src/test/ui/error-codes/E0507.rs
@@ -0,0 +1,13 @@
+use std::cell::RefCell;
+
+struct TheDarkKnight;
+
+impl TheDarkKnight {
+ fn nothing_is_true(self) {}
+}
+
+fn main() {
+ let x = RefCell::new(TheDarkKnight);
+
+ x.borrow().nothing_is_true(); //~ ERROR E0507
+}