-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactored arg_info to collect all results and match them against dif…
…ferent outcomes later, wrote compilation test for combined errors for arg_info too.
- Loading branch information
1 parent
9b41078
commit 5eca06c
Showing
3 changed files
with
67 additions
and
48 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
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
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,5 +1,19 @@ | ||
error: Unsupported serializer type. | ||
--> compilation_tests/invalid_arg_pat.rs:25:1 | ||
| | ||
25 | #[near_bindgen] | ||
| ^^^^^^^^^^^^^^^ | ||
| | ||
= note: this error originates in the attribute macro `near_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: Unsupported contract API type. | ||
--> compilation_tests/invalid_arg_pat.rs:27:38 | ||
| | ||
27 | pub fn faulty_method(&mut self, #[serializer(SomeNonExistentSerializer)] _a: *mut u32,) {} | ||
| ^ | ||
|
||
error: Only identity patterns are supported in function arguments. | ||
--> compilation_tests/invalid_arg_pat.rs:12:30 | ||
--> compilation_tests/invalid_arg_pat.rs:28:38 | ||
| | ||
12 | pub fn insert(&mut self, (a, b): (u8, u32)) {} | ||
| ^^^^^^ | ||
28 | pub fn faulty_method1(&mut self, #[serializer(SomeNonExistentSerializer)] (a, b): (u8, u32)) {} | ||
| ^ |