rust/tests/ui/error-codes/E0507.rs
2023-01-11 09:32:08 +00:00

13 lines
210 B
Rust

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
}