]> git.lizzy.rs Git - rust.git/blob - tests/incremental/change_implementation_cross_crate/main.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / incremental / change_implementation_cross_crate / main.rs
1 // Test that we are able to reuse `main` despite the changes in the implementation of `foo` and
2 // `bar`.
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 #![rustc_partition_reused(module = "main", cfg = "rpass2")]
11
12 extern crate a;
13
14 pub fn main() {
15     let vec: Vec<u8> = vec![0, 1, 2, 3];
16     for b in vec {
17         println!("{}", a::foo(b));
18         println!("{}", a::bar(b));
19     }
20 }