Skip to content

Commit 49c3aaa

Browse files
bjorn3alexcrichton
andcommitted
Add test
Co-Authored-By: Alex Crichton <[email protected]>
1 parent 4d1c16c commit 49c3aaa

3 files changed

+44
-0
lines changed

Diff for: tests/ui/wasm/wasm-bindgen-broken-error.rs

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//@ only-wasm32
2+
//@ revisions: v0_1_0 v0_2_87 v0_2_88 v0_3_0 v1_0_0
3+
//@[v0_1_0] check-fail
4+
//@[v0_1_0] rustc-env:CARGO_PKG_VERSION_MAJOR=0
5+
//@[v0_1_0] rustc-env:CARGO_PKG_VERSION_MINOR=1
6+
//@[v0_1_0] rustc-env:CARGO_PKG_VERSION_PATCH=0
7+
//@[v0_2_87] check-fail
8+
//@[v0_2_87] rustc-env:CARGO_PKG_VERSION_MAJOR=0
9+
//@[v0_2_87] rustc-env:CARGO_PKG_VERSION_MINOR=2
10+
//@[v0_2_87] rustc-env:CARGO_PKG_VERSION_PATCH=87
11+
//@[v0_2_88] check-pass
12+
//@[v0_2_88] rustc-env:CARGO_PKG_VERSION_MAJOR=0
13+
//@[v0_2_88] rustc-env:CARGO_PKG_VERSION_MINOR=2
14+
//@[v0_2_88] rustc-env:CARGO_PKG_VERSION_PATCH=88
15+
//@[v0_3_0] check-pass
16+
//@[v0_3_0] rustc-env:CARGO_PKG_VERSION_MAJOR=0
17+
//@[v0_3_0] rustc-env:CARGO_PKG_VERSION_MINOR=3
18+
//@[v0_3_0] rustc-env:CARGO_PKG_VERSION_PATCH=0
19+
//@[v1_0_0] check-pass
20+
//@[v1_0_0] rustc-env:CARGO_PKG_VERSION_MAJOR=1
21+
//@[v1_0_0] rustc-env:CARGO_PKG_VERSION_MINOR=0
22+
//@[v1_0_0] rustc-env:CARGO_PKG_VERSION_PATCH=0
23+
24+
#![crate_name = "wasm_bindgen"]
25+
//[v0_1_0]~^ ERROR: older versions of the `wasm-bindgen` crate
26+
//[v0_2_87]~^^ ERROR: older versions of the `wasm-bindgen` crate
27+
28+
fn main() {}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: older versions of the `wasm-bindgen` crate are incompatible with current versions of Rust; please update to `wasm-bindgen` v0.2.88
2+
--> $DIR/wasm-bindgen-broken-error.rs:24:1
3+
|
4+
LL | #![crate_name = "wasm_bindgen"]
5+
| ^
6+
7+
error: aborting due to 1 previous error
8+
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: older versions of the `wasm-bindgen` crate are incompatible with current versions of Rust; please update to `wasm-bindgen` v0.2.88
2+
--> $DIR/wasm-bindgen-broken-error.rs:24:1
3+
|
4+
LL | #![crate_name = "wasm_bindgen"]
5+
| ^
6+
7+
error: aborting due to 1 previous error
8+

0 commit comments

Comments
 (0)