]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/struct_change_field_type_cross_crate/b.rs
Rollup merge of #99479 - Enselic:import-can-be-without-id, r=camelid
[rust.git] / src / test / incremental / struct_change_field_type_cross_crate / b.rs
1 // aux-build:a.rs
2 // revisions:rpass1 rpass2
3 // compile-flags: -Z query-dep-graph
4
5 #![feature(rustc_attrs)]
6
7 extern crate a;
8
9 use a::*;
10
11 #[rustc_clean(except="typeck", cfg="rpass2")]
12 pub fn use_X() -> u32 {
13     let x: X = X { x: 22 };
14     x.x as u32
15 }
16
17 #[rustc_clean(except="typeck", cfg="rpass2")]
18 pub fn use_EmbedX(embed: EmbedX) -> u32 {
19     embed.x.x as u32
20 }
21
22 #[rustc_clean(cfg="rpass2")]
23 pub fn use_Y() {
24     let x: Y = Y { y: 'c' };
25 }
26
27 pub fn main() { }