Skip to content

internal compiler error: unprintable span #31011

Closed
@rillian

Description

@rillian

Trying to access a struct member from a macro inside a parameterized closure, I get:

src/lib.rs:407:26: 266:22 error: attempted access of field `trace` on type `&mut C`, but no field with that name was found
(internal compiler error: unprintable span)
src/lib.rs:407:21: 407:95 note: in this expansion of log! (defined in src/lib.rs)

The code may well be wrong, but I thought the internal compiler error was worth reporting.

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