--> /home/bwinton/.cargo/registry/src/github.com-1ecc6299db9ec823/pom-2.0.0/src/set.rs:34:32
|
34 | (self as &Range<T>).contains(*elem)
| ^^^^^
| |
| expected &T, found type parameter
| help: consider borrowing here: `&*elem`
|
= note: expected type `&T`
found type `T`
error[E0308]: mismatched types
--> /home/bwinton/.cargo/registry/src/github.com-1ecc6299db9ec823/pom-2.0.0/src/set.rs:40:36
|
40 | (self as &RangeFrom<T>).contains(*elem)
| ^^^^^
| |
| expected &T, found type parameter
| help: consider borrowing here: `&*elem`
|
= note: expected type `&T`
found type `T`
error[E0308]: mismatched types
--> /home/bwinton/.cargo/registry/src/github.com-1ecc6299db9ec823/pom-2.0.0/src/set.rs:46:34
|
46 | (self as &RangeTo<T>).contains(*elem)
| ^^^^^
| |
| expected &T, found type parameter
| help: consider borrowing here: `&*elem`
|
= note: expected type `&T`
found type `T`
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0308`.
error: Could not compile `pom`.```
nightly-x86_64-unknown-linux-gnu - rustc 1.27.0-nightly (9fae15374 2018-05-13)