mneumann / rust-msgpack

[DEPRECATED] msgpack.org implementation for Rust language. Please use https://github.com/3Hren/msgpack-rust
122 stars 31 forks source link

Lifetime bound must be applied to a path not a reference #36

Closed drbawb closed 9 years ago

drbawb commented 9 years ago

Fixes the following error:

/home/drbawb/projects/rust/rust-msgpack/src/lib.rs:501:9: 501:27 error: expected a path on the left-hand side of `+`, not `&'a mut io::Writer` [E0171]
/home/drbawb/projects/rust/rust-msgpack/src/lib.rs:501     wr: &'a mut io::Writer + 'a
                                                               ^~~~~~~~~~~~~~~~~~
/home/drbawb/projects/rust/rust-msgpack/src/lib.rs:501:9: 501:27 note: perhaps you meant `&'a mut (io::Writer + 'a)`? (per RFC 248)
/home/drbawb/projects/rust/rust-msgpack/src/lib.rs:501     wr: &'a mut io::Writer + 'a
                                                               ^~~~~~~~~~~~~~~~~~

When compiling with a recent version of rustc.

drbawb commented 9 years ago

(Closing because it is fixed by PR #32)