Skip to content

println!(format!("")) causes infinite loop in compiler #12071

Closed
@rcxdude

Description

@rcxdude

Attempting to compile:

fn main() {
    println!(format!("test"))
}

Causes rustc to go into an infinite loop printing out the same two lines:

testcase.rs:2:14: 2:20 error: macro undefined: 'format'
testcase.rs:2     println!(format!("test"))

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