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

proc-macro derive produced unparseable tokens #176

Closed
Dirbaio opened this issue Sep 21, 2020 · 0 comments · Fixed by #178
Closed

proc-macro derive produced unparseable tokens #176

Dirbaio opened this issue Sep 21, 2020 · 0 comments · Fixed by #178
Assignees
Labels
type: bug Something isn't working

Comments

@Dirbaio
Copy link
Contributor

Dirbaio commented Sep 21, 2020

#[derive(defmt::Format)]
pub struct Set<'a, 'b: 'a> {
    foo: &'a u32,
    bar: &'b u32,
}

produces this error

error: expected one of `,` or `>`, found `:`
   --> foobar/src/lib.rs:140:22
    |
140 | pub struct Set<'a, 'b: 'a> {
    |                      ^ expected one of `,` or `>`

error: proc-macro derive produced unparseable tokens
   --> foobar/src/lib.rs:139:10
    |
139 | #[derive(defmt::Format)]
    |          ^^^^^^^^^^^^^

defmt version cf066cb
rustc 1.48.0-nightly (6af1bdda5 2020-09-15)

@jonas-schievink jonas-schievink added the type: bug Something isn't working label Sep 21, 2020
@jonas-schievink jonas-schievink self-assigned this Sep 22, 2020
@japaric japaric added type: bug Something isn't working and removed type: bug Something isn't working labels Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants