mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00

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` ```
13 lines
445 B
Plaintext
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`.
|