rust/tests/ui/wasm/wasm-hang-issue-76281.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
271 B
Rust
Raw Normal View History

// only-wasm32
// compile-flags: -C opt-level=2
// build-pass
// Regression test for #76281.
// This seems like an issue related to LLVM rather than
// libs-impl so place here.
fn main() {
let mut v: Vec<&()> = Vec::new();
v.sort_by_key(|&r| r as *const ());
}