You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the trait bound `Foo:SolStruct` is not satisfied
--> crates/sol-types/tests/sol.rs:295:5
|
295 | / sol!{296 | | typeFoo is uint256;
297 | | structBar{298 | | Foo a;
299 | | }300 | | }
| |_____^ the trait `SolStruct` is not implemented for `Foo`
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)
Component
sol! macro
What version of Alloy are you on?
Latest
Operating System
None
Describe the bug
The following code:
Fails with:
The problem is here:
core/crates/sol-macro/src/expand/struct.rs
Lines 168 to 190 in 43a14af
#ty as SolStruct
does not hold for UDVTs, which do not implementSolStruct
.The text was updated successfully, but these errors were encountered: