summaryrefslogtreecommitdiff
path: root/tests/ui/consts/auxiliary/unstable_but_const_stable.rs
blob: 88044b0272c78202baf69ad0e7b9571156af1d86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(staged_api, rustc_attrs, intrinsics)]
#![stable(since="1.0.0", feature = "stable")]

extern "rust-intrinsic" {
    #[unstable(feature = "unstable", issue = "42")]
    #[rustc_const_stable(feature = "stable", since = "1.0.0")]
    #[rustc_nounwind]
    pub fn write_bytes<T>(dst: *mut T, val: u8, count: usize);
}

#[unstable(feature = "unstable", issue = "42")]
#[rustc_const_stable(feature = "stable", since = "1.0.0")]
pub const fn some_unstable_fn() {}