2021-06-15 09:08:18 -05:00
|
|
|
#![feature(intrinsics)]
|
|
|
|
#![feature(no_core)]
|
2022-08-17 06:43:59 -05:00
|
|
|
#![feature(rustc_attrs)]
|
2021-06-15 09:08:18 -05:00
|
|
|
|
|
|
|
#![no_core]
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
2024-11-07 01:59:43 -06:00
|
|
|
//@ has 'foo/fn.abort.html'
|
|
|
|
//@ has - '//pre[@class="rust item-decl"]' 'pub fn abort() -> !'
|
|
|
|
#[rustc_intrinsic]
|
|
|
|
#[rustc_intrinsic_must_be_overridden]
|
|
|
|
pub fn abort() -> ! {
|
|
|
|
loop {}
|
2021-06-15 09:08:18 -05:00
|
|
|
}
|
2024-11-07 01:59:43 -06:00
|
|
|
//@ has 'foo/fn.unreachable.html'
|
|
|
|
//@ has - '//pre[@class="rust item-decl"]' 'pub unsafe fn unreachable() -> !'
|
|
|
|
#[rustc_intrinsic]
|
|
|
|
#[rustc_intrinsic_must_be_overridden]
|
|
|
|
pub unsafe fn unreachable() -> ! {
|
|
|
|
loop {}
|
2021-06-15 09:08:18 -05:00
|
|
|
}
|