-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message on incorrectly typed span
- Loading branch information
Showing
3 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
error[E0599]: no method named `__into_span` found for struct `__private::get_span::GetSpan<&str>` in the current scope | ||
error[E0308]: mismatched types | ||
--> tests/ui/wrong-type-span.rs:6:5 | ||
| | ||
6 | quote_spanned!(span=> #x); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `GetSpan<&str>` | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | | ||
| expected `Span`, found `&str` | ||
| expected due to this | ||
| | ||
= note: the method was found for | ||
- `__private::get_span::GetSpan<Span>` | ||
= note: this error originates in the macro `quote_spanned` (in Nightly builds, run with -Z macro-backtrace for more info) |