]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-ascription-instead-of-statement-end.rs
Auto merge of #99443 - jam1garner:mips-virt-feature, r=nagisa
[rust.git] / src / test / ui / type / type-ascription-instead-of-statement-end.rs
1 #![feature(type_ascription)]
2
3 fn main() {
4     println!("test"):
5     0; //~ ERROR expected type, found `0`
6 }
7
8 fn foo() {
9     println!("test"): 0; //~ ERROR expected type, found `0`
10 }