summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type/type-shadow.rs
blob: 48a68a3907a9aad05bd055337a66c95f4e6bc4b6 (plain)
1
2
3
4
5
6
7
8
fn main() {
    type X = isize;
    type Y = X;
    if true {
        type X = &'static str;
        let y: Y = "hello"; //~ ERROR mismatched types
    }
}