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

Fix generated Into conversion involving generic remote derive with getter #2330

Merged
merged 2 commits into from Nov 28, 2022

Commits on Nov 28, 2022

  1. Add test of generic remote derive with getter

    Currently fails to compile.
    
        error[E0107]: missing generics for struct `StructGeneric`
           --> test_suite/tests/test_remote.rs:181:18
            |
        181 | #[serde(remote = "remote::StructGeneric")]
            |                  ^^^^^^^^^^^^^^^^^^^^^^^ expected 1 generic argument
            |
        note: struct defined here, with 1 generic parameter: `T`
           --> test_suite/tests/test_remote.rs:78:16
            |
        78  |     pub struct StructGeneric<T> {
            |                ^^^^^^^^^^^^^ -
        help: add missing generic argument
            |
        181 | #[serde(remote = StructGeneric<T>)]
            |                  ~~~~~~~~~~~~~~~~
    dtolnay committed Nov 28, 2022
    Copy the full SHA
    7328b34 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    3702191 View commit details
    Browse the repository at this point in the history