Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error prevents compiling latest source 12.0.0-beta.3 #680

Closed
MarcelKlammer opened this issue Aug 5, 2024 · 5 comments
Closed

Error prevents compiling latest source 12.0.0-beta.3 #680

MarcelKlammer opened this issue Aug 5, 2024 · 5 comments

Comments

@MarcelKlammer
Copy link
Contributor

This commit introduced a compile error:
500f144

error[E0401]: can't use `Self` from outer item
  --> src/protocol_types/certificates/certificate.rs:86:75
   |
75 | impl Certificate {
   | ---- `Self` type implicitly declared here, by this `impl`
...
86 |     pub fn new_reg_cert(stake_registration: &StakeRegistration) -> Result<Self, JsError> {
   |                                                                           ^^^^
   |                                                                           |
   |                                                                           use of `Self` from outer item
   |                                                                           refer to the type directly here instead
   |
   = note: a `const` is a separate item from the item that contains it

error[E0401]: can't use `Self` from outer item
   --> src/protocol_types/certificates/certificate.rs:105:81
    |
75  | impl Certificate {
    | ---- `Self` type implicitly declared here, by this `impl`
...
105 |     pub fn new_unreg_cert(stake_deregistration: &StakeDeregistration) -> Result<Self, JsError> {
    |                                                                                 ^^^^
    |                                                                                 |
    |                                                                                 use of `Self` from outer item
    |                                                                                 refer to the type directly here instead
    |
    = note: a `const` is a separate item from the item that contains it

@lisicky
Copy link
Contributor

lisicky commented Aug 5, 2024

Hi @MarcelKlammer! Which rust version do you use ?

@MarcelKlammer
Copy link
Contributor Author

rustup --version
rustup 1.27.1 (2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active rustc version is rustc 1.80.0 (051478957 2024-07-21)

wasm-pack --version
wasm-pack 0.13.0

@lisicky
Copy link
Contributor

lisicky commented Aug 5, 2024

@MarcelKlammer I'll check it on 1.80

@lisicky
Copy link
Contributor

lisicky commented Aug 9, 2024

Hi @MarcelKlammer ! Could you check the latest CSL 12 beta ?

@MarcelKlammer
Copy link
Contributor Author

Fixed. Thanks.

@lisicky lisicky closed this as completed Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants