mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 07:00:47 +00:00
14 lines
210 B
Rust
14 lines
210 B
Rust
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
|
|
}
|