error: implementation of `Stream` is not general enough --> $DIR/issue-30786.rs:108:22 | LL | / pub trait Stream { LL | | type Item; LL | | fn next(self) -> Option; LL | | } | |_- trait `Stream` defined here ... LL | let map = source.map(|x: &_| x); | ^^^ implementation of `Stream` is not general enough | = note: `Stream` would have to be implemented for the type `&'0 mut Map`, for any lifetime `'0`... = note: ...but `Stream` is actually implemented for the type `&'1 mut Map`, for some specific lifetime `'1` error: aborting due to previous error