Sign in
rust
/
rust
/
8a7e1d75b2e2f4a2e89420130bca8d8d97f9074e
/
.
/
tests
/
ui
/
error-codes
/
E0507.rs
blob: bae90a44ce0233f1407cc0081806d994cd482e34 [
file
]
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
}