mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
16 lines
256 B
Rust
16 lines
256 B
Rust
// compile-flags:-C panic=abort
|
|
// error-pattern: language item required, but not found: `panic_info`
|
|
|
|
#![feature(lang_items)]
|
|
#![feature(no_core)]
|
|
#![no_core]
|
|
#![no_main]
|
|
|
|
#[panic_handler]
|
|
fn panic() -> ! {
|
|
loop {}
|
|
}
|
|
|
|
#[lang = "sized"]
|
|
trait Sized {}
|