Only suggest let assignment for type ascription if we find an equals sign
This commit is contained in:
parent
b1a6c32660
commit
72a3089092
2 changed files with 24 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue