1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 #![feature(staged_api, allow_internal_unstable)]
13 #![stable(feature = "stable", since = "1.0.0")]
15 #[unstable(feature = "function")]
19 #[stable(feature = "stable", since = "1.0.0")]
21 #[unstable(feature = "struct_field")]
26 #[unstable(feature = "method")]
27 pub fn method(&self) {}
30 #[stable(feature = "stable", since = "1.0.0")]
32 #[unstable(feature = "struct2_field")]
36 #[allow_internal_unstable]
38 macro_rules
! call_unstable_allow
{
39 () => { $crate::unstable() }
42 #[allow_internal_unstable]
44 macro_rules
! construct_unstable_allow
{
50 #[allow_internal_unstable]
52 macro_rules
! call_method_allow
{
53 ($e
: expr
) => { $e.method() }
56 #[allow_internal_unstable]
58 macro_rules
! access_field_allow
{
59 ($e
: expr
) => { $e.x }
62 #[allow_internal_unstable]
64 macro_rules
! pass_through_allow
{
69 macro_rules
! call_unstable_noallow
{
70 () => { $crate::unstable() }
74 macro_rules
! construct_unstable_noallow
{
81 macro_rules
! call_method_noallow
{
82 ($e
: expr
) => { $e.method() }
86 macro_rules
! access_field_noallow
{
87 ($e
: expr
) => { $e.x }
91 macro_rules
! pass_through_noallow
{