summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/auxiliary/stability.rs
blob: e615955186020f6e95d9e2c932a5dcaa7a643c07 (plain)
1
2
3
4
5
6
7
8
9
10
// Crate that exports a const fn. Used for testing cross-crate.

#![crate_type="rlib"]
#![stable(feature = "rust1", since = "1.0.0")]

#![feature(staged_api)]

#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature="foo", issue = "none")]
pub const fn foo() -> u32 { 42 }