Skip to content

fmt!'s pretty printer dies on vectors of unit struct #7625

Closed

Description

@emberian
fn main() {
    struct Foo;
    let x = ~[Foo, Foo, Foo];
    println(fmt!("%?", x));
    // hangs, gobbles up memory
}

Activity

  1. huonw commented on Jul 6, 2013

    @huonw
    Contributor

    I'd guess this is somehow linked to unit structs being 0 sized.

  2. added a commit that references this issue on Jul 10, 2013
    6d4d2c9
  3. added a commit that references this issue on Jul 11, 2013
    9b5d523
  4. added a commit that references this issue on Sep 28, 2021
  5. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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