mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-27 18:56:24 +00:00
12 lines
282 B
Rust
12 lines
282 B
Rust
// Test that a missing lang item (in this case `sized`) does not cause an ICE,
|
|
// see #17392.
|
|
|
|
#![feature(lang_items, no_core)]
|
|
#![no_core]
|
|
#![no_main]
|
|
|
|
#[no_mangle]
|
|
extern "C" fn main(_argc: i32, _argv: *const *const u8) -> i32 { //~ ERROR requires `sized` lang_item
|
|
loop {}
|
|
}
|