rust/tests/ui/type/type-ascription-instead-of-...

9 lines
161 B
Rust

fn main() {
println!("test"): //~ ERROR statements are terminated with a semicolon
0;
}
fn foo() {
println!("test"): 0; //~ ERROR expected one of
}