Closed
Description
The error came up with the latest nightly build of the rust. I guess after stabilization of generics in the associated types: rust-lang/rust#96709
ink! generates the code like this to get the selectors of the methods inside the match
statement:
And it causes the compilation error. It can be fixed for a new version of ink! by moving this code from the match
statement for each selector into a separate constant, and using those constants in the match
. But all old versions of ink! should be compiled with old Rust(Or we need to patch each release with a minor fix).
Metadata
Metadata
Assignees
Labels
No labels