1 2 3 4 5 6 7 8 9 10
#![feature(type_ascription)] fn main() { println!("test"): 0; //~ ERROR expected type, found `0` } fn foo() { println!("test"): 0; //~ ERROR expected type, found `0` }