1 // Test that we are able to reuse `main` even though a private
2 // item was removed from the root module of crate`a`.
4 // revisions:rpass1 rpass2
6 // compile-flags: -Zquery-dep-graph
8 #![feature(rustc_attrs)]
11 #![rustc_partition_reused(module="main", cfg="rpass2")]
16 let vec: Vec<u8> = vec![0, 1, 2, 3];
18 println!("{}", a::foo(b));