mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 05:26:23 +03:00
14 lines
242 B
Rust
14 lines
242 B
Rust
// compile-flags: -Zmiri-disable-isolation
|
|
|
|
#![feature(backtrace)]
|
|
|
|
use std::alloc::System;
|
|
use std::backtrace::Backtrace;
|
|
|
|
#[global_allocator]
|
|
static GLOBAL_ALLOCATOR: System = System;
|
|
|
|
fn main() {
|
|
eprint!("{}", Backtrace::capture());
|
|
}
|