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

Support dynamically sized field in error #375

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Support dynamically sized field in error #375

merged 2 commits into from
Nov 8, 2024

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Nov 8, 2024

No description provided.

    error[E0599]: the method `as_display` exists for reference `&str`, but its trait bounds were not satisfied
      --> tests/test_path.rs:26:9
       |
    26 | #[error("{tail}")]
       |         ^^^^^^^^ method cannot be called on `&str` due to unsatisfied trait bounds
       |
       = note: the following trait bounds were not satisfied:
               `str: Sized`
               which is required by `&str: AsDisplay<'_>`
@dtolnay dtolnay merged commit 2f6bff3 into master Nov 8, 2024
20 checks passed
@dtolnay dtolnay deleted the unsized branch November 8, 2024 17:24
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 this pull request may close these issues.

1 participant