about summary refs log tree commit diff
path: root/tests/ui/type/type-ascription-instead-of-statement-end.rs
blob: e30e571386bd254ba86c0f48785468c5eaaf39cd (plain)
1
2
3
4
5
6
7
8
fn main() {
    println!("test"): //~ ERROR statements are terminated with a semicolon
    0;
}

fn foo() {
    println!("test"): 0; //~ ERROR expected one of
}