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

[Bug] compilation error #50

Open
xpamych opened this issue Jan 30, 2023 · 1 comment
Open

[Bug] compilation error #50

xpamych opened this issue Jan 30, 2023 · 1 comment

Comments

@xpamych
Copy link

xpamych commented Jan 30, 2023

Describe the bug
When using the stable version of rust, cargo cannot build the application.

** Runtime Info **
Install Type: Install with cargo
App Version: [e.g. v1.0.6]

Expected behavior
Installing the application without error))

Screenshots
image

Platform Details (please complete the following information):

  • OS: RED OS
  • Terminal Emulator: mate-terminal
  • Shell ZSH

Additional context
Erroneous code example:

#[repr(u128)] // error: use of unstable library feature 'repr128'
enum Foo {
    Bar(u64),
}

If you're using a stable or a beta version of rustc, you won't be able to use
any unstable features. In order to do so, please switch to a nightly version of
rustc (by using rustup).

If you're using a nightly version of rustc, just add the corresponding feature
to be able to use it:

#![feature(repr128)]

#[repr(u128)] // ok!
enum Foo {
    Bar(u64),
}
@sreedevk
Copy link
Owner

will look into this @xpamych. Thank you for reporting.

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