Skip to content

internal compiler error on reading stdin: panicked at Box<Any> #22589

Closed
@yann-ledu

Description

@yann-ledu

Ok, this is not syntactically correct, but compiler should not panick

Using rustc 1.0.0-nightly (522d09d 2015-02-19) (built 2015-02-19)

use std::old_io;
fn main()
{
let s = old_io::stdin().read_line().ok().expect("");
if let Result<n2,_> = s.trim().parse() {};
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions