2016-09-02 07:26:36 -05:00
|
|
|
// Test that we are able to reuse `main` even though a private
|
|
|
|
// item was removed from the root module of crate`a`.
|
|
|
|
|
|
|
|
// revisions:rpass1 rpass2
|
|
|
|
// aux-build:a.rs
|
2018-09-18 09:33:24 -05:00
|
|
|
// compile-flags: -Zquery-dep-graph
|
2016-09-02 07:26:36 -05:00
|
|
|
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
#![crate_type = "bin"]
|
2017-08-29 17:22:19 -05:00
|
|
|
|
2017-09-28 04:58:45 -05:00
|
|
|
#![rustc_partition_reused(module="main", cfg="rpass2")]
|
2016-09-02 07:26:36 -05:00
|
|
|
|
|
|
|
extern crate a;
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
let vec: Vec<u8> = vec![0, 1, 2, 3];
|
|
|
|
for &b in &vec {
|
|
|
|
println!("{}", a::foo(b));
|
|
|
|
}
|
|
|
|
}
|