You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #64368 - Centril:rollup-4s8ko6f, r=Centril
Rollup of 6 pull requests
Successful merges:
- #64060 (Improve hygiene of `alloc::format!`)
- #64072 (Replace file_stem by file_name in rustdoc markdown)
- #64085 (Tweak unsatisfied HRTB errors)
- #64129 (vxWorks: set DEFAULT_MIN_STACK_SIZE to 256K and use min_stack to pass initial stack size to rtpSpawn)
- #64188 (rustc: Allow the cdylib crate type with wasm32-wasi)
- #64349 (documentation for AtomicPtr CAS operations)
Failed merges:
r? @ghost
error: implementation of `Stream` is not general enough
2
2
--> $DIR/issue-30786.rs:108:22
3
3
|
4
-
LL | let map = source.map(|x: &_| x);
5
-
| ^^^
4
+
LL | / pub trait Stream {
5
+
LL | | type Item;
6
+
LL | | fn next(self) -> Option<Self::Item>;
7
+
LL | | }
8
+
| |_- trait `Stream` defined here
9
+
...
10
+
LL | let map = source.map(|x: &_| x);
11
+
| ^^^ implementation of `Stream` is not general enough
6
12
|
7
-
= 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`
8
-
= 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`
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`
0 commit comments