2021-06-15 14:08:18 +00:00
|
|
|
#![feature(intrinsics)]
|
|
|
|
#![feature(no_core)]
|
2022-08-17 11:43:59 +00:00
|
|
|
#![feature(rustc_attrs)]
|
2021-06-15 14:08:18 +00:00
|
|
|
|
|
|
|
#![no_core]
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
2024-11-07 07:59:43 +00: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 14:08:18 +00:00
|
|
|
}
|
2024-11-07 07:59:43 +00: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 14:08:18 +00:00
|
|
|
}
|