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

Add test of r#source that is not Error::source #350

Merged
merged 1 commit into from
Nov 4, 2024
Merged

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Nov 4, 2024

Without r#source:

error[E0599]: the method `as_dyn_error` exists for type `char`, but its trait bounds were not satisfied
  --> tests/test_source.rs:72:9
   |
72 |         source: char,
   |         ^^^^^^ method cannot be called on `char` due to unsatisfied trait bounds
   |
   = note: the following trait bounds were not satisfied:
           `char: std::error::Error`
           which is required by `char: AsDynError<'_>`

Without r#source:

    error[E0599]: the method `as_dyn_error` exists for type `char`, but its trait bounds were not satisfied
      --> tests/test_source.rs:72:9
       |
    72 |         source: char,
       |         ^^^^^^ method cannot be called on `char` due to unsatisfied trait bounds
       |
       = note: the following trait bounds were not satisfied:
               `char: std::error::Error`
               which is required by `char: AsDynError<'_>`
@dtolnay dtolnay merged commit ef191b1 into master Nov 4, 2024
22 checks passed
@dtolnay dtolnay deleted the rawsource branch November 4, 2024 21:38
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