Skip to content

Commit

Permalink
Update trybuild output for rustc error message change
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed Sep 5, 2022
1 parent 24482eb commit c0e882b
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions tests/compile-fail/rust_action_type_error.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
error[E0308]: mismatched types
--> $DIR/rust_action_type_error.rs:7:27
|
7 | rule foo() -> X = "a" { Y } //~ ERROR
| ^^^^^ expected struct `X`, found struct `Y`
|
= note: this error originates in the macro `peg::parser` (in Nightly builds, run with -Z macro-backtrace for more info)
--> $DIR/rust_action_type_error.rs:7:27
|
7 | rule foo() -> X = "a" { Y } //~ ERROR
| ^^^^^
| |
| expected struct `X`, found struct `Y`
| arguments to this enum variant are incorrect
|
note: tuple variant defined here
--> $DIR/lib.rs:14:5
|
14 | Matched(usize, T),
| ^^^^^^^
= note: this error originates in the macro `peg::parser` (in Nightly builds, run with -Z macro-backtrace for more info)

0 comments on commit c0e882b

Please sign in to comment.