-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
error: Invalid data parameter. | ||
|
||
= note: Expected one of [`raw`, `opt`, `instantiate`] comma separated. | ||
--> tests/ui/attributes/data/invalid_params.rs:25:20 | ||
--> tests/ui/attributes/data/invalid_params.rs:28:24 | ||
| | ||
25 | #[sv::data(invalid)] _data: Option<Binary>, | ||
| ^^^^^^^ | ||
28 | #[sv::data(invalid)] _data: Option<Binary>, | ||
| ^^^^^^^ | ||
|
||
error: The `instantiate` cannot be used in pair with `raw` parameter. | ||
|
||
= note: Use any combination of [`raw`, `opt`] or [`instantiate`, `opt`] pairs. | ||
|
||
--> tests/ui/attributes/data/invalid_params.rs:57:24 | ||
| | ||
57 | #[sv::data(instantiate, raw)] _data: Option<Binary>, | ||
| ^^^^^^^^^^^ |