Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
error-codes
/
E0507.rs
blob: bae90a44ce0233f1407cc0081806d994cd482e34 [
file
] [
log
] [
blame
]
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
}