aboutsummaryrefslogtreecommitdiff
path: root/tests/typeerrors/field_typo.zc
blob: aa642091f96e2019800b603226aefa7b3d783add (plain) (blame)
1
2
3
4
5
namespace;

// expect: point has no field lenght; did you mean 'length'?
struct point { int length, width; };
fn main() { point* p; return p.lenght; }