mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 01:25:15 +00:00
This was necessary when transitioning from JS to wasm exception handling on Emscripten. Enough time has probably passed that we no longer need to support JS exception handling on Emscripten. This enables cleaning up a fair bit of code.
14 lines
351 B
Rust
14 lines
351 B
Rust
//@ edition:2015
|
|
//@ aux-build:weak-lang-items.rs
|
|
//@ needs-unwind since it affects the error output
|
|
|
|
#![no_std]
|
|
|
|
extern crate core; //~ ERROR the name `core` is defined multiple times
|
|
extern crate weak_lang_items;
|
|
|
|
fn main() {}
|
|
|
|
//~? ERROR `#[panic_handler]` function required, but not found
|
|
//~? ERROR unwinding panics are not supported without std
|