Skip to content

missing hint: type annotation #13

Open
@phrohdoh

Description

@phrohdoh

What I expected

Brief explanation of type annotations (and possibly link to book).

Source code

 0 | fn main() {
 1 |   let mut rdr: Box<io::Read> = match input {
   |              ↑-------------↑
 2 |     "-" => Box::new(io::stdin()),
 3 |     _   => Box::new(fs::File::open(input).unwrap()),
 4 |   };
 5 | }

Location: line 1, column 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions