diff options
| author | bors <bors@rust-lang.org> | 2018-03-26 18:41:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-03-26 18:41:38 +0000 |
| commit | 188e693b392116c46f746e86f8521f9621fcfd43 (patch) | |
| tree | 21205e49317c0c351e2ef53a584559a213e862b8 /src/test/ui/error-codes | |
| parent | ab8b961677ac5c74762dcea955aa0ff4d7fe4915 (diff) | |
| parent | 140bf949bf65bb0479dbe31bd3474d5546ef59e1 (diff) | |
| download | rust-188e693b392116c46f746e86f8521f9621fcfd43.tar.gz rust-188e693b392116c46f746e86f8521f9621fcfd43.zip | |
Auto merge of #49101 - mark-i-m:stabilize_i128, r=nagisa
Stabilize 128-bit integers :tada: cc #35118 EDIT: This should be merged only after the following have been merged: - [x] https://github.com/rust-lang-nursery/compiler-builtins/pull/236 - [x] https://github.com/rust-lang/book/pull/1230
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0658.rs | 7 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0658.stderr | 12 |
2 files changed, 12 insertions, 7 deletions
diff --git a/src/test/ui/error-codes/E0658.rs b/src/test/ui/error-codes/E0658.rs index d30068eb1fe..dcfa25e528a 100644 --- a/src/test/ui/error-codes/E0658.rs +++ b/src/test/ui/error-codes/E0658.rs @@ -8,6 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -fn main() { - let _ = ::std::u128::MAX; //~ ERROR E0658 +#[repr(u128)] +enum Foo { //~ ERROR E0658 + Bar(u64), } + +fn main() {} diff --git a/src/test/ui/error-codes/E0658.stderr b/src/test/ui/error-codes/E0658.stderr index 5be05600ee5..b338b384a11 100644 --- a/src/test/ui/error-codes/E0658.stderr +++ b/src/test/ui/error-codes/E0658.stderr @@ -1,10 +1,12 @@ -error[E0658]: use of unstable library feature 'i128' (see issue #35118) - --> $DIR/E0658.rs:12:13 +error[E0658]: repr with 128-bit type is unstable (see issue #35118) + --> $DIR/E0658.rs:12:1 | -LL | let _ = ::std::u128::MAX; //~ ERROR E0658 - | ^^^^^^^^^^^^^^^^ +LL | / enum Foo { //~ ERROR E0658 +LL | | Bar(u64), +LL | | } + | |_^ | - = help: add #![feature(i128)] to the crate attributes to enable + = help: add #![feature(repr128)] to the crate attributes to enable error: aborting due to previous error |
