3 #![unstable(feature = "humans",
4 reason = "who ever let humans program computers, we're apparently really bad at it",
7 #![feature(rustc_const_unstable, const_fn, foo, foo2)]
8 #![feature(staged_api)]
10 // @has 'foo/fn.foo.html' '//pre' 'pub unsafe fn foo() -> u32'
11 #[stable(feature = "rust1", since = "1.0.0")]
12 #[rustc_const_unstable(feature="foo")]
13 pub const unsafe fn foo() -> u32 { 42 }
15 // @has 'foo/fn.foo2.html' '//pre' 'pub fn foo2() -> u32'
16 #[unstable(feature = "humans", issue="0")]
17 pub const fn foo2() -> u32 { 42 }
19 // @has 'foo/fn.bar2.html' '//pre' 'pub const fn bar2() -> u32'
20 #[stable(feature = "rust1", since = "1.0.0")]
21 pub const fn bar2() -> u32 { 42 }
23 // @has 'foo/fn.foo2_gated.html' '//pre' 'pub unsafe fn foo2_gated() -> u32'
24 #[unstable(feature = "foo2", issue="0")]
25 pub const unsafe fn foo2_gated() -> u32 { 42 }
27 // @has 'foo/fn.bar2_gated.html' '//pre' 'pub const unsafe fn bar2_gated() -> u32'
28 #[stable(feature = "rust1", since = "1.0.0")]
29 pub const unsafe fn bar2_gated() -> u32 { 42 }
31 // @has 'foo/fn.bar_not_gated.html' '//pre' 'pub unsafe fn bar_not_gated() -> u32'
32 pub const unsafe fn bar_not_gated() -> u32 { 42 }