Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
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
}