]> git.proxmox.com Git - rustc.git/blame - src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / alloc-error / alloc-error-handler-bad-signature-3.rs
CommitLineData
8faf50e0 1// compile-flags:-C panic=abort
83c7162d 2
5e7ed085 3#![feature(alloc_error_handler)]
8faf50e0
XL
4#![no_std]
5#![no_main]
2c00a5a8 6
8faf50e0 7struct Layout;
3157f602 8
8faf50e0 9#[alloc_error_handler]
487cf647 10fn oom() -> ! { //~ ERROR this function takes 0 arguments but 1 argument was supplied
8faf50e0 11 loop {}
a7813a04
XL
12}
13
b7449926 14#[panic_handler]
8faf50e0 15fn panic(_: &core::panic::PanicInfo) -> ! { loop {} }