2014-09-23 17:18:54 +12:00
|
|
|
// Test that a missing lang item (in this case `sized`) does not cause an ICE,
|
|
|
|
|
// see #17392.
|
|
|
|
|
|
2024-12-14 09:13:12 +01:00
|
|
|
#![feature(lang_items, no_core)]
|
2015-07-29 17:01:14 -07:00
|
|
|
#![no_core]
|
2024-12-14 09:13:12 +01:00
|
|
|
#![no_main]
|
2014-09-23 17:18:54 +12:00
|
|
|
|
2024-12-14 09:13:12 +01:00
|
|
|
#[no_mangle]
|
2025-03-29 02:41:32 +03:00
|
|
|
extern "C" fn main(_argc: i32, _argv: *const *const u8) -> i32 { //~ ERROR requires `sized` lang_item
|
2024-12-14 09:13:12 +01:00
|
|
|
loop {}
|
2014-09-23 17:18:54 +12:00
|
|
|
}
|