Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/kani_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ proc-macro = true

[dependencies]
proc-macro2 = "1.0"
proc-macro-error2 = "2.0.0"
proc-macro-error2 = { version = "2.0.0", features = ["nightly"] }
quote = "1.0.20"
syn = { version = "2.0.18", features = ["full", "visit-mut", "visit", "extra-traits"] }

Expand Down
5 changes: 4 additions & 1 deletion tests/ui/derive-arbitrary/union/expected
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ error: Cannot derive `Arbitrary` for `Wrapper` union
|\
| #[derive(kani::Arbitrary)]\
| ^^^^^^^^^^^^^^^\
|
|\
note: `#[derive(Arbitrary)]` cannot be used for unions such as `Wrapper`

|\
| union Wrapper {\
| ^^^^^^^\
= note: this error originates in the derive macro `kani::Arbitrary`