fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error: implementation of `Stream` is not general enough 2 --> $DIR/issue-30786.rs:108:22 3 | 4LL | / pub trait Stream { 5LL | | type Item; 6LL | | fn next(self) -> Option<Self::Item>; 7LL | | } 8 | |_- trait `Stream` defined here 9... 10LL | let map = source.map(|x: &_| x); 11 | ^^^ implementation of `Stream` is not general enough 12 | 13 = note: `Stream` would have to be implemented for the type `&'0 mut Map<Repeat, [closure@$DIR/issue-30786.rs:108:26: 108:35]>`, for any lifetime `'0`... 14 = note: ...but `Stream` is actually implemented for the type `&'1 mut Map<Repeat, [closure@$DIR/issue-30786.rs:108:26: 108:35]>`, for some specific lifetime `'1` 15 16error: aborting due to previous error 17