1
Fork 0

Implement type ascription.

This commit is contained in:
Eduard Burtescu 2015-02-01 09:59:46 +02:00 committed by Vadim Petrochenkov
parent ce7bc51933
commit b8157cc67f
20 changed files with 112 additions and 12 deletions

View file

@ -22,7 +22,7 @@ impl Foo {
fn main() {
while Foo {
x: 3 //~ ERROR expected one of `!`, `.`, `::`, `;`, `{`, `}`, or an operator, found `:`
x: 3 //~ ERROR expected type, found `3`
}.hi() {
println!("yo");
}