Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
error-codes
/
E0507.rs
blob: bae90a44ce0233f1407cc0081806d994cd482e34 [
file
] [
log
] [
blame
] [
edit
]
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
}