2018-08-25 08:31:24 -05:00
|
|
|
// 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")]
|
2019-12-21 05:16:18 -06:00
|
|
|
#[rustc_const_unstable(feature="foo", issue = "none")]
|
2018-08-25 08:54:09 -05:00
|
|
|
pub const fn foo() -> u32 { 42 }
|