diff options
Diffstat (limited to 'tests/ui/error-codes/E0507.rs')
-rw-r--r-- | tests/ui/error-codes/E0507.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0507.rs b/tests/ui/error-codes/E0507.rs new file mode 100644 index 000000000..bae90a44c --- /dev/null +++ b/tests/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 +} |