]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0507.rs
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[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 }