summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0507.rs
blob: bae90a44ce0233f1407cc0081806d994cd482e34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
}