Skip to content

Commit cf41fde

Browse files
committed
Fix e0658 ui test
1 parent a347bb3 commit cf41fde

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

src/test/ui/error-codes/E0658.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
fn main() {
12-
let _ = ::std::u128::MAX; //~ ERROR E0658
11+
#[repr(u128)]
12+
enum Foo { //~ ERROR E0658
13+
Bar(u64),
1314
}
15+
16+
fn main() {}

src/test/ui/error-codes/E0658.stderr

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
error[E0658]: use of unstable library feature 'i128' (see issue #35118)
2-
--> $DIR/E0658.rs:12:13
1+
error[E0658]: repr with 128-bit type is unstable (see issue #35118)
2+
--> $DIR/E0658.rs:12:1
33
|
4-
LL | let _ = ::std::u128::MAX; //~ ERROR E0658
5-
| ^^^^^^^^^^^^^^^^
4+
LL | / enum Foo { //~ ERROR E0658
5+
LL | | Bar(u64),
6+
LL | | }
7+
| |_^
68
|
7-
= help: add #![feature(repri128)] to the crate attributes to enable
9+
= help: add #![feature(repr128)] to the crate attributes to enable
810

911
error: aborting due to previous error
1012

0 commit comments

Comments
 (0)