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

Wrong end position for inner type #296

Closed
antoyo opened this issue Jan 6, 2018 · 1 comment
Closed

Wrong end position for inner type #296

antoyo opened this issue Jan 6, 2018 · 1 comment

Comments

@antoyo
Copy link

antoyo commented Jan 6, 2018

Hi.
It seems there's an error for the end position of an inner type.
In my code, I get the following error:

error: use of unsupported type name `Option<String>`
  --> $DIR/sql_table.rs:42:28
   |
42 |     nested_options: Option<Option<String>>,
   |                            ^^^^^^^^^^^^^^^

(There is one extra ^ .)
This is an error I generate and the span comes from calling the method span() on a syn::Type.
Thanks to fix this issue.

@dtolnay
Copy link
Owner

dtolnay commented Jan 6, 2018

Thanks, I filed rust-lang/rust#47226 to follow up on the compiler side.

@dtolnay dtolnay closed this as completed Jan 6, 2018
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

No branches or pull requests

2 participants