-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a whitelist of recognized integer reprs
- Loading branch information
Showing
2 changed files
with
14 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
error[E0412]: cannot find type `C` in this scope | ||
error: unsupported repr for serde_repr enum | ||
--> tests/ui/repr_c.rs:4:8 | ||
| | ||
3 | #[derive(Serialize_repr)] | ||
| -------------- similarly named type parameter `S` defined here | ||
4 | #[repr(C)] | ||
| ^ help: a type parameter with a similar name exists: `S` | ||
| ^ |