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[E0599]: no method named unwrap_or found for struct PanicMessage in the current scope #35

Open
vamsz opened this issue Aug 15, 2024 · 2 comments

Comments

@vamsz
Copy link

vamsz commented Aug 15, 2024

The error message no method named 'unwrap_or' found for struct 'PanicMessage' means that the Rust compiler is unable to find a method named unwrap_or that can be called on a PanicMessage object.

In Rust, unwrap_or is commonly used with Option and Result types. For example, Option has an unwrap_or method that returns the value inside the Option if it is Some, or a default value if it is None. Similarly, Result has an unwrap_or method for handling Ok and Err cases.
Screenshot from 2024-08-15 15-34-19

@Strange21
Copy link
Contributor

Strange21 commented Aug 20, 2024

Hi @vamsz,
Can you please elaborate the steps to re-produce the error, because I tried to compile rustBoot for rpi4 & it built successfully on my machine with following rust tool chain.

active toolchain
----------------

nightly-2023-10-10-x86_64-unknown-linux-gnu (default)
rustc 1.75.0-nightly (59edd6705 2023-10-09)

also paste your active toolchains info using rustup show
for quick connects you can find us on elements.io

@vamsz
Copy link
Author

vamsz commented Aug 23, 2024

By using different version we are getting this now I used different version I can compile it IMG_20240823_202551.jpg

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