1 // this has to be separate to internal-unstable.rs because these tests
2 // have error messages pointing deep into the internals of the
3 // cross-crate macros, and hence need to use error-pattern instead of
6 // aux-build:internal_unstable.rs
7 // error-pattern:use of unstable library feature 'function'
8 // error-pattern:use of unstable library feature 'struct_field'
9 // error-pattern:use of unstable library feature 'method'
10 // error-pattern:use of unstable library feature 'struct2_field'
13 extern crate internal_unstable;
16 call_unstable_noallow!();
18 construct_unstable_noallow!(0);
20 |x: internal_unstable::Foo| { call_method_noallow!(x) };
22 |x: internal_unstable::Bar| { access_field_noallow!(x) };