Skip to content

Repr prints struct variants as tuple variants #10063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sfackler opened this issue Oct 25, 2013 · 1 comment
Closed

Repr prints struct variants as tuple variants #10063

sfackler opened this issue Oct 25, 2013 · 1 comment

Comments

@sfackler
Copy link
Member

#[feature(struct_variant)];

enum Foo {
    Bar { x: int, y: int }
}

fn main() {
    println!("{:?}", Bar { x: 1, y: 2 });
}

outputs

Bar(1, 2)
@thestinger
Copy link
Contributor

#8930

flip1995 pushed a commit to flip1995/rust that referenced this issue Dec 29, 2022
add [`permissions_set_readonly_false`] rust-lang#9702

Add slight modification on [this PR](rust-lang/rust-clippy#9744).

---

changelog: New lint [`permissions_set_readonly_false`]
[rust-lang#10063](rust-lang/rust-clippy#10063)
<!-- changelog_checked -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants