You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
struct A {
n: i32,
}
impl A {
fn n(&self) -> i32 {
self.n
}
}
but you forget the fn
struct A {
n: i32,
}
impl A {
n(&self) -> i32 {
self.n
}
}
then the compiler responds with "note: the compiler unexpectedly panicked. this is a bug." I don't know if its possible but a "missing fn" message would be ideal or at least a "expected one of ! or ::, found ("