]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/match/match-struct.stderr
Reword label as per review comment
[rust.git] / src / test / ui / match / match-struct.stderr
index 43f17b2d747b337aafc6889de8bb8307c2563d00..2a24a293e98364e68c6a3a4c47fbecac7ace3e05 100644 (file)
@@ -1,6 +1,8 @@
 error[E0308]: mismatched types
-  --> $DIR/match-struct.rs:17:9
+  --> $DIR/match-struct.rs:6:9
    |
+LL |     match (S { a: 1 }) {
+   |           ------------ this match expression has type `S`
 LL |         E::C(_) => (),
    |         ^^^^^^^ expected struct `S`, found enum `E`
    |