Unable to Display `#![no_std]` WASM in the Playground

I'm trying to view the WASM for a small #![no_std] program in the Rust playground, but I can't seem to get it to work. Anybody have any ideas? It seems to work fine unless I do it #![no_std].

I keep getting this message:

Unable to locate file for WebAssembly output
#![no_std]
#![no_main]

#[panic_handler]
fn my_panic(_info: &core::panic::PanicInfo) -> ! {
    loop {}
}

#[no_mangle]
static TEST: &str = "Hello world";

(Playground)

1 Like

It looks like this is a known issue:

https://github.com/integer32llc/rust-playground/issues/586

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.