summaryrefslogtreecommitdiffstats
path: root/tests/incremental/krate_reassign_34991/main.rs
blob: c4ae19ac942f21637ad9c737fa33ee3ef2e7c0b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// aux-build:a.rs
// revisions:rpass1 rpass2

#![feature(rustc_attrs)]

#[cfg(rpass1)]
extern crate a;

#[cfg(rpass1)]
pub fn use_X() -> u32 {
    let x: a::X = 22;
    x as u32
}

#[cfg(rpass2)]
pub fn use_X() -> u32 {
    22
}

pub fn main() { }