Closed
Description
With this code, there is no error:
struct Toto;
impl Toto {
fn doit(&self, ) // No parse error here!
{ }
}
fn main() {
}
But with this code there is an error:
struct Toto;
impl Toto {
fn doit(_: &uint, ) // error: unexpected token: `)`
{ }
}
fn main() {
}
I don't know if this extra comma should be an error or not (in my opinion this should be an error). But the behavior should be the same in both cases anyway.