]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-shadow.rs
Auto merge of #99443 - jam1garner:mips-virt-feature, r=nagisa
[rust.git] / src / test / 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 }