]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/type-shadow.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / type / type-shadow.rs
1 fn main() {
2     type X = isize;
3     type Y = X;
4     if true {
5         type X = &'static str;
6         let y: Y = "hello"; //~ ERROR mismatched types
7     }
8 }