rust/tests/ui/error-codes/E0507.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
210 B
Rust
Raw Normal View History

2016-08-25 22:14:20 +00:00
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
}