Skip to content

Commit 34ffbdb

Browse files
committed
This test will not link on wasm32.
1 parent e7f8c0d commit 34ffbdb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/test/ui/extern/extern-const.fixed

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// This test is checking that extern items cannot be const. It also
2-
// checks that `rustfix` suggests the alternative of using an extern
3-
// static.
1+
// Check extern items cannot be const + `rustfix` suggests using
2+
// extern static.
43
//
54
// #54388: an unused reference to an undefined static may or may not
65
// compile. To sidestep this by using one that *is* defined.
76

87
// run-rustfix
8+
// ignore-wasm32 no external library to link to.
99
// compile-flags: -g -Z continue-parse-after-error
1010
#![feature(libc)]
1111
extern crate libc;

src/test/ui/extern/extern-const.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// This test is checking that extern items cannot be const. It also
2-
// checks that `rustfix` suggests the alternative of using an extern
3-
// static.
1+
// Check extern items cannot be const + `rustfix` suggests using
2+
// extern static.
43
//
54
// #54388: an unused reference to an undefined static may or may not
65
// compile. To sidestep this by using one that *is* defined.
76

87
// run-rustfix
8+
// ignore-wasm32 no external library to link to.
99
// compile-flags: -g -Z continue-parse-after-error
1010
#![feature(libc)]
1111
extern crate libc;

0 commit comments

Comments
 (0)