Skip to content

ICE on turbofish without parens followed by >= . #60499

Closed
@ogiekako

Description

@ogiekako

Given main.rs:

fn main() {
    std::mem::size_of::<i32> >= 0
}

$ rustc main.rs
thread 'rustc' panicked at 'called Option::unwrap() on a None value', src/libcore/option.rs:347:21
note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.36.0-nightly (3c3d3c1 2019-04-17) running on x86_64-apple-darwin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions