deduplicator icon indicating copy to clipboard operation
deduplicator copied to clipboard

[Bug] compilation error

Open xpamych opened this issue 3 years ago • 1 comments

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),
}

xpamych avatar Jan 30 '23 08:01 xpamych

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

sreedevk avatar Jan 30 '23 14:01 sreedevk