File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,16 @@ struct Named {
1111struct Unnamed(usize);
1212
1313fn named_struct_field_access(named: &Named) {
14- named.foo; //~ ERROR `->` used for field access or method call
14+ named.foo; //~ ERROR `->` is not valid syntax for field accesses and method calls
1515}
1616
1717fn unnamed_struct_field_access(unnamed: &Unnamed) {
18- unnamed.0; //~ ERROR `->` used for field access or method call
18+ unnamed.0; //~ ERROR `->` is not valid syntax for field accesses and method calls
1919}
2020
2121fn tuple_field_access(t: &(u8, u8)) {
22- t.0; //~ ERROR `->` used for field access or method call
23- t.1; //~ ERROR `->` used for field access or method call
22+ t.0; //~ ERROR `->` is not valid syntax for field accesses and method calls
23+ t.1; //~ ERROR `->` is not valid syntax for field accesses and method calls
2424}
2525
2626#[derive(Clone)]
You can’t perform that action at this time.
0 commit comments