Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
compile-fail
/
trait-impl-different-num-params.rs
blob: 8cf572d27abe58f5e107096b84856c75e3029662 [
file
] [
log
] [
blame
]
trait
foo
{
fn
bar
(
x
:
uint
)
->
self
;
}
impl
int
:
foo
{
fn
bar
()
->
int
{
//~^ ERROR method `bar` has 0 parameters but the trait has 1
self
}
}
fn
main
()
{
}