]> git.lizzy.rs Git - rust.git/blob - src/test/ui/internal/internal-unstable-noallow.rs
Auto merge of #99028 - tmiasko:inline, r=estebank
[rust.git] / src / test / ui / internal / internal-unstable-noallow.rs
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
4 // the // ~ form.
5
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'
11
12 #[macro_use]
13 extern crate internal_unstable;
14
15 fn main() {
16     call_unstable_noallow!();
17
18     construct_unstable_noallow!(0);
19
20     |x: internal_unstable::Foo| { call_method_noallow!(x) };
21
22     |x: internal_unstable::Bar| { access_field_noallow!(x) };
23 }