]> git.lizzy.rs Git - rust.git/blob - tests/incremental/remove_crate/main.rs
Rollup merge of #107323 - JakobDegen:const-goto, r=tmiasko
[rust.git] / tests / incremental / remove_crate / main.rs
1 // Test that removing an upstream crate does not cause any trouble.
2
3 // revisions:rpass1 rpass2
4 // aux-build:extern_crate.rs
5
6 #[cfg(rpass1)]
7 extern crate extern_crate;
8
9 pub fn main() {
10     #[cfg(rpass1)]
11     {
12         extern_crate::foo(1);
13     }
14
15     #[cfg(rpass2)]
16     {
17         foo(1);
18     }
19 }
20
21 #[cfg(rpass2)]
22 pub fn foo(_: u8) {
23
24 }