Skip to content
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

Implicit string value is private #28

Closed
anthok opened this issue Aug 12, 2021 · 1 comment · Fixed by #30
Closed

Implicit string value is private #28

anthok opened this issue Aug 12, 2021 · 1 comment · Fixed by #30

Comments

@anthok
Copy link
Contributor

anthok commented Aug 12, 2021

When you have a Implicit string like below, it's not possible to access the value by itself because value is private.
Implicit { _tag: PhantomData, value: "TestString" }

error[E0616]: field `value` of struct `Implicit` is private
    |             println!("{:?}", obj.value);
    |                                  ^^^^^ private field

@anthok anthok changed the title Implicit Value is private Implicit string value is private Aug 12, 2021
@XAMPPRocky
Copy link
Collaborator

Thank you for your issue! If you'd like I'd accept a PR making the field pub.

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

Successfully merging a pull request may close this issue.

2 participants