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
Copy file name to clipboardExpand all lines: src/test/ui/error-codes/E0026-teach.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0026]: struct `Thing` does not have a field named `z`
2
2
--> $DIR/E0026-teach.rs:21:23
3
3
|
4
4
LL | Thing { x, y, z } => {}
5
-
| ^ struct `Thing` does not have field `z`
5
+
| ^ struct `Thing` does not have this field
6
6
|
7
7
= note: This error indicates that a struct pattern attempted to extract a non-existent field from a struct. Struct fields are identified by the name used before the colon : so struct patterns should resemble the declaration of the struct type being matched.
0 commit comments