Implement type ascription.
This commit is contained in:
parent
ce7bc51933
commit
b8157cc67f
20 changed files with 112 additions and 12 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue