Stabilize i128 feature too
This commit is contained in:
@@ -250,7 +250,10 @@ An unstable feature was used.
|
||||
Erroneous code example:
|
||||
|
||||
```compile_fail,E658
|
||||
let x = ::std::u128::MAX; // error: use of unstable library feature 'i128'
|
||||
#[repr(u128)] // error: use of unstable library feature 'i128'
|
||||
enum Foo {
|
||||
Bar(u64),
|
||||
}
|
||||
```
|
||||
|
||||
If you're using a stable or a beta version of rustc, you won't be able to use
|
||||
@@ -261,10 +264,11 @@ If you're using a nightly version of rustc, just add the corresponding feature
|
||||
to be able to use it:
|
||||
|
||||
```
|
||||
#![feature(i128)]
|
||||
#![feature(repri128)]
|
||||
|
||||
fn main() {
|
||||
let x = ::std::u128::MAX; // ok!
|
||||
#[repr(u128)] // ok!
|
||||
enum Foo {
|
||||
Bar(u64),
|
||||
}
|
||||
```
|
||||
"##,
|
||||
|
||||
Reference in New Issue
Block a user