Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
ui
/
methods
/
method-not-found-on-struct.rs
blob: b2a457ed19e5c3124502ecfc3475a40198d61cea [
file
] [
log
] [
blame
] [
edit
]
//! regression test for <https://github.com/rust-lang/rust/issues/19692>
struct
Homura
;
fn
akemi
(
homura
:
Homura
)
{
let
Some
(
ref
madoka
)
=
Some
(
homura
.
kaname
());
//~ ERROR no method named `kaname` found
madoka
.
clone
();
}
fn
main
()
{
}