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

Derive display alt formatted string requires the same named args as the main string #24

Open
5 of 9 tasks
dr-orlovsky opened this issue Nov 3, 2020 · 0 comments
Open
5 of 9 tasks
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dr-orlovsky
Copy link
Member

Checklist
Put x in the boxes below:

  • I am using rust compiler version no less than 1.41.1
  • I am using the latest code (git checkout master && git pull origin)
  • I did cargo update
  • I recompiler adter removing target directory

Bug type

Put x in the boxes below:

  • Build issue
  • Test failing
  • Runtime panic
  • Incorrect results
  • Unexpected/undocumented behavior

Problem description

Derive display alt formatted string requires the same named args as the main string

Reproducing

Steps to reproduce the behavior:
rust #[derive(Display)] #[display("node_info", alt = "{0}")] struct NodeInfo(u8),

Logs

error[E0425]: cannot find value `_0` in this scope
117 | |     #[display("node_info", alt = "{0}")]
118 | |     struct NodeInfo(u8),
    | |______________________^ not found in this scope
@dr-orlovsky dr-orlovsky added the enhancement New feature or request label Nov 3, 2020
@dr-orlovsky dr-orlovsky self-assigned this Nov 3, 2020
@dr-orlovsky dr-orlovsky transferred this issue from rust-amplify/rust-amplify Feb 5, 2023
@dr-orlovsky dr-orlovsky added this to the 4.x milestone Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant