]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0507.rs
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
[rust.git] / src / test / ui / error-codes / E0507.rs
1 use std::cell::RefCell;
2
3 struct TheDarkKnight;
4
5 impl TheDarkKnight {
6     fn nothing_is_true(self) {}
7 }
8
9 fn main() {
10     let x = RefCell::new(TheDarkKnight);
11
12     x.borrow().nothing_is_true(); //~ ERROR E0507
13 }