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

Commits on Nov 8, 2024

  1. Add test of dynamically sized error type

        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 committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    8e8e273 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24c04da View commit details
    Browse the repository at this point in the history