diff options
Diffstat (limited to 'tests/ui/lang-items/lang-item-missing.rs')
-rw-r--r-- | tests/ui/lang-items/lang-item-missing.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/lang-items/lang-item-missing.rs b/tests/ui/lang-items/lang-item-missing.rs new file mode 100644 index 000000000..4e2634324 --- /dev/null +++ b/tests/ui/lang-items/lang-item-missing.rs @@ -0,0 +1,12 @@ +// Test that a missing lang item (in this case `sized`) does not cause an ICE, +// see #17392. + +// error-pattern: requires `sized` lang_item + +#![feature(start, no_core)] +#![no_core] + +#[start] +fn start(argc: isize, argv: *const *const u8) -> isize { + 0 +} |