summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-64430.rs
blob: 0bc66e06e67319b04bb7a49b25627716e5ce7c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// compile-flags:-C panic=abort

#![no_std]
pub struct Foo;

fn main() {
    Foo.bar()
    //~^ ERROR E0599
}

#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
    loop{}
}