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 17:14:20 -05: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
}