Skip to content

Regression in integer fallback #21595

Closed
@SiegeLord

Description

@SiegeLord

This code compiled fine before 1.0.0-nightly (4be79d6 2015-01-23 16:08:14 +0000):

fn main()
{
    for i in 0..100
    {
        i as f32;
    }
}

But with that version, it now gives this error:

<anon>:5:3: 5:11 error: the type of this value must be known in this context
<anon>:5        i as f32;
                ^~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions