rust/tests/ui/proc-macro/quote/does-not-have-iter-interpolated-dup.stderr
Esteban Küber e9609abda4 Account for macros when trying to point at inference cause
Do not point at macro invocation which expands to an inference error. Avoid the following:

```
error[E0308]: mismatched types
  --> $DIR/does-not-have-iter-interpolated.rs:12:5
   |
LL |     quote!($($nonrep)*);
   |     ^^^^^^^^^^^^^^^^^^^
   |     |
   |     expected `HasIterator`, found `ThereIsNoIteratorInRepetition`
   |     expected due to this
   |     here the type of `has_iter` is inferred to be `ThereIsNoIteratorInRepetition`
```
2025-08-10 21:47:52 +00:00

13 lines
445 B
Plaintext

error[E0308]: mismatched types
--> $DIR/does-not-have-iter-interpolated-dup.rs:12:5
|
LL | quote!($($nonrep $nonrep)*);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| expected `HasIterator`, found `ThereIsNoIteratorInRepetition`
| here the type of `has_iter` is inferred to be `ThereIsNoIteratorInRepetition`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.