14 lines
236 B
Rust
14 lines
236 B
Rust
|
fn main() {
|
||
|
let _: usize = ()
|
||
|
//~^ ERROR mismatched types
|
||
|
let _ = 3;
|
||
|
//~^ ERROR expected one of
|
||
|
}
|
||
|
|
||
|
fn foo() -> usize {
|
||
|
let _: usize = ()
|
||
|
//~^ ERROR mismatched types
|
||
|
return 3;
|
||
|
//~^ ERROR expected one of
|
||
|
}
|