Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
type
/
type-ascription-instead-of-statement-end.rs
blob: 1d5565ab58384cf586bb899c16c1b51866d9e205 [
file
] [
log
] [
blame
]
#![
feature
(
type_ascription
)]
fn
main
()
{
println
!(
"test"
):
0
;
//~ ERROR expected type, found `0`
}
fn
foo
()
{
println
!(
"test"
):
0
;
//~ ERROR expected type, found `0`
}