Skip to content

"error: the type of this value must be known in this context" for as_ref #222

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
emk opened this issue Nov 30, 2016 · 0 comments
Closed

Comments

@emk
Copy link
Contributor

emk commented Nov 30, 2016

With:

$ rustc --version 
rustc 1.15.0-nightly (03bdaade2 2016-11-27)

I get the following error:

error: the type of this value must be known in this context
   --> /home/emk/.cargo/registry/src/github.heygears.com-1ecc6299db9ec823/postgres-0.13.2/src/lib.rs:794:61
    |
794 |                 let get_raw = |i| row.get(i).and_then(|r| r.as_ref().map(|r| &**r));
    |                                                             ^^^^^^

This looks like it's related to 11f1186 and possibly rust-lang/rust#36340.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant