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

deriving Pread produces unparseable tokens for lifetime bounded slices #108

Open
m4b opened this issue Nov 18, 2024 · 0 comments
Open

deriving Pread produces unparseable tokens for lifetime bounded slices #108

m4b opened this issue Nov 18, 2024 · 0 comments

Comments

@m4b
Copy link
Owner

m4b commented Nov 18, 2024

In process of testing #107 i discovered e.g.:

#[derive(Debug, Pread)]
struct Data12<'a> {
    ids: &'a [u8],
}

yields:

error: expected `:`, found `,`
   --> tests/tests.rs:273:17
    |
273 | #[derive(Debug, Pread)]
    |                 ^^^^^ expected `:`
    |
    = note: this error originates in the derive macro `Pread` (in Nightly builds, run with -Z macro-backtrace for more info)

error: proc-macro derive produced unparsable tokens
   --> tests/tests.rs:273:17
    |
273 | #[derive(Debug, Pread)]
    |                 ^^^^^

error: could not compile `scroll_derive` (test "tests") due to 2 previous errors
@m4b m4b changed the title Pread produces unparseable tokens for lifetime bounded slices deriving Pread produces unparseable tokens for lifetime bounded slices Nov 18, 2024
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

1 participant