1 #![feature(intrinsics)]
2 #![feature(staged_api)]
5 #![stable(since="1.0.0", feature="rust1")]
7 extern "rust-intrinsic" {
8 // @has 'foo/fn.transmute.html'
9 // @has - '//pre[@class="rust item-decl"]' 'pub const unsafe extern "rust-intrinsic" fn transmute<T, U>(_: T) -> U'
10 #[stable(since="1.0.0", feature="rust1")]
11 #[rustc_const_stable(feature = "const_transmute", since = "1.56.0")]
12 pub fn transmute<T, U>(_: T) -> U;
14 // @has 'foo/fn.unreachable.html'
15 // @has - '//pre[@class="rust item-decl"]' 'pub unsafe extern "rust-intrinsic" fn unreachable() -> !'
16 #[stable(since="1.0.0", feature="rust1")]
17 pub fn unreachable() -> !;
21 // @has 'foo/fn.needs_drop.html'
22 // @has - '//pre[@class="rust item-decl"]' 'pub unsafe extern "C" fn needs_drop() -> !'
23 #[stable(since="1.0.0", feature="rust1")]
24 pub fn needs_drop() -> !;