]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/remove-private-item-cross-crate/main.rs
Rollup merge of #95005 - ssomers:btree_static_assert, r=thomcc
[rust.git] / src / test / incremental / remove-private-item-cross-crate / main.rs
1 // Test that we are able to reuse `main` even though a private
2 // item was removed from the root module of crate`a`.
3
4 // revisions:rpass1 rpass2
5 // aux-build:a.rs
6 // compile-flags: -Zquery-dep-graph
7
8 #![feature(rustc_attrs)]
9 #![crate_type = "bin"]
10
11 #![rustc_partition_reused(module="main", cfg="rpass2")]
12
13 extern crate a;
14
15 pub fn main() {
16     let vec: Vec<u8> = vec![0, 1, 2, 3];
17     for &b in &vec {
18         println!("{}", a::foo(b));
19     }
20 }