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

Dies with nightly Rust #1701

Closed
trsh opened this Issue May 18, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@trsh

trsh commented May 18, 2018

error[E0053]: method `metadata` has an incompatible type for trait
   --> /home/trsh/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.2.2/src/pg/types/array.rs:14:25
    |
14  |     fn metadata(lookup: &PgMetadataLookup) -> PgTypeMetadata {
    |                         ^^^^^^^^^^^^^^^^^ expected associated type, found struct `pg::metadata_lookup::PgMetadataLookup`
    | 
   ::: /home/trsh/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.2.2/src/sql_types/mod.rs:402:25
    |
402 |     fn metadata(lookup: &Self::MetadataLookup) -> Self::TypeMetadata;
    |                         --------------------- type in trait
    |
    = note: expected type `fn(&<pg::backend::Pg as sql_types::TypeMetadata>::MetadataLookup) -> <pg::backend::Pg as sql_types::TypeMetadata>::TypeMetadata`
               found type `fn(&pg::metadata_lookup::PgMetadataLookup) -> pg::backend::PgTypeMetadata`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0053`.
error: Could not compile `diesel`.

@trsh trsh changed the title from Dies with nightly ust to Dies with nightly Rust May 18, 2018

@weiznich

This comment has been minimized.

Contributor

weiznich commented May 18, 2018

Duplicate of #1700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment