]> git.proxmox.com Git - rustc.git/blob - tests/incremental/remove_crate/main.rs
New upstream version 1.68.2+dfsg1
[rustc.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 }