-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: update failed cases for new constant declaration syntax
- Loading branch information
Showing
5 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
tests/cases/parser/literals/double_colon_in_map_literal.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
error: expected a name here | ||
--> $DIR/double_colon_in_map_literal.hash:3:15 | ||
error: expected an expression, however received a `::` | ||
--> $DIR/double_colon_in_map_literal.hash:3:13 | ||
2 | | ||
3 | k := map!{ 1::2 }; | ||
| ^ | ||
= help: expected a `identifier` | ||
| ^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
error: expected a name here | ||
--> $DIR/triple_colon_in_access_name.hash:3:7 | ||
error: expected field name access or a method call | ||
--> $DIR/triple_colon_in_access_name.hash:3:5 | ||
2 | | ||
3 | a::b:::c<int>(); | ||
| ^ | ||
3 | a.b.:c<int>(); | ||
| ^ | ||
= help: expected a `identifier` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
error: unexpectedly encountered a `>` | ||
--> $DIR/malformed_function_type.hash:3:20 | ||
--> $DIR/malformed_function_type.hash:3:21 | ||
2 | | ||
3 | str_eq: (str, str) > str; | ||
| ^ | ||
= help: expected a `=` | ||
| ^ | ||
= help: expected either `:`, or `=` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
error[0024]: cannot use an intrinsic in pattern position | ||
--> $DIR/intrinsics_in_pats.hash:5:5 | ||
4 | match 1 { | ||
5 | Intrinsics::user_error => {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
5 | Intrinsics.user_error => {} | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
6 | } | ||
= info: cannot use this in pattern position as it refers to a compiler intrinsic |