Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
compile-fail
/
class-method-missing.rs
blob: 642a26e6e9ef0299700c68964e5952b51b328a78 [
file
] [
log
] [
blame
]
// error-pattern:missing method `eat`
trait
animal
{
fn
eat
();
}
struct
cat
{
meows
:
uint
,
}
impl
cat
:
animal
{
}
fn
cat
(
in_x
:
uint
)
->
cat
{
cat
{
meows
:
in_x
}
}
fn
main
()
{
let
nyan
=
cat
(
0u
);
}