]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0507.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[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 }