Skip to content

Commit 8797986

Browse files
committed
Add a regression test for #76281
This has been fixed between 1.47.0-nightly (663d2f5 2020-08-22) and 1.47.0-nightly (5180f3d 2020-08-23).
1 parent dcf622e commit 8797986

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// only-wasm32
2+
// compile-flags: -C opt-level=2
3+
// build-pass
4+
5+
// Regression test for #76281.
6+
// This seems like an issue related to LLVM rather than
7+
// libs-impl so place here.
8+
9+
fn main() {
10+
let mut v: Vec<&()> = Vec::new();
11+
v.sort_by_key(|&r| r as *const ());
12+
}

0 commit comments

Comments
 (0)