We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 991ee09 + 4710d96 commit 64b5c95Copy full SHA for 64b5c95
tests/compile-fail/rust_action_type_error.stderr
@@ -7,6 +7,11 @@ error[E0308]: mismatched types
7
| expected struct `X`, found struct `Y`
8
| arguments to this enum variant are incorrect
9
|
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}}`
15
note: tuple variant defined here
16
--> $DIR/lib.rs:14:5
17
0 commit comments