Only suggest let assignment for type ascription if we find an equals sign

This commit is contained in:
Esteban Küber 2019-03-13 16:07:44 -07:00
parent b1a6c32660
commit 72a3089092
2 changed files with 24 additions and 16 deletions

View file

@ -8,15 +8,9 @@ error[E0423]: expected value, found module `std`
--> $DIR/type-ascription-instead-of-path.rs:2:5
|
LL | std:io::stdin();
| ^^^ not a value
help: maybe you meant to write a path separator here
|
LL | std::io::stdin();
| ^^
help: maybe you meant to write an assignment here
|
LL | let std:io::stdin();
| ^^^^^^^
| ^^^- help: maybe you meant to write a path separator here: `::`
| |
| not a value
error[E0658]: type ascription is experimental (see issue #23416)
--> $DIR/type-ascription-instead-of-path.rs:2:5