1 // aux-build:internal_unstable.rs
3 #![feature(allow_internal_unstable)]
6 extern crate internal_unstable;
9 ($e: expr, $f: expr) => {{
12 internal_unstable::unstable(); //~ ERROR use of unstable
16 #[allow_internal_unstable(function)]
20 internal_unstable::unstable());
21 internal_unstable::unstable();
26 // ok, the instability is contained.
27 call_unstable_allow!();
28 construct_unstable_allow!(0);
29 |x: internal_unstable::Foo| { call_method_allow!(x) };
30 |x: internal_unstable::Bar| { access_field_allow!(x) };
33 pass_through_allow!(internal_unstable::unstable()); //~ ERROR use of unstable
35 pass_through_noallow!(internal_unstable::unstable()); //~ ERROR use of unstable
39 println!("{:?}", internal_unstable::unstable()); //~ ERROR use of unstable
41 bar!(internal_unstable::unstable()); //~ ERROR use of unstable