Skip to content

Commit 64b5c95

Browse files
Merge remote-tracking branch 'upstream/master' into patch-no-std-runtime
2 parents 991ee09 + 4710d96 commit 64b5c95

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/compile-fail/rust_action_type_error.stderr

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ error[E0308]: mismatched types
77
| expected struct `X`, found struct `Y`
88
| arguments to this enum variant are incorrect
99
|
10+
help: the type constructed contains `Y` due to the type of the argument passed
11+
--> $DIR/rust_action_type_error.rs:7:27
12+
|
13+
7 | rule foo() -> X = "a" { Y } //~ ERROR
14+
| ^^^^^ this argument influences the type of `{{root}}`
1015
note: tuple variant defined here
1116
--> $DIR/lib.rs:14:5
1217
|

0 commit comments

Comments
 (0)