]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hrtb/issue-30786.migrate.stderr
New upstream version 1.59.0+dfsg1
[rustc.git] / src / test / ui / hrtb / issue-30786.migrate.stderr
CommitLineData
a2a8927a
XL
1error[E0599]: the method `filterx` exists for struct `Map<Repeat, [closure@$DIR/issue-30786.rs:126:27: 126:36]>`, but its trait bounds were not satisfied
2 --> $DIR/issue-30786.rs:127:22
416331ca 3 |
f035d41b
XL
4LL | pub struct Map<S, F> {
5 | --------------------
6 | |
7 | method `filterx` not found for this
8 | doesn't satisfy `_: StreamExt`
e1599b0c 9...
f035d41b 10LL | let filter = map.filterx(|x: &_| true);
a2a8927a 11 | ^^^^^^^ method cannot be called on `Map<Repeat, [closure@$DIR/issue-30786.rs:126:27: 126:36]>` due to unsatisfied trait bounds
416331ca 12 |
3c0e092e 13note: the following trait bounds were not satisfied because of the requirements of the implementation of `StreamExt` for `_`:
a2a8927a
XL
14 `&'a mut Map<Repeat, [closure@$DIR/issue-30786.rs:126:27: 126:36]>: Stream`
15 `&'a mut &Map<Repeat, [closure@$DIR/issue-30786.rs:126:27: 126:36]>: Stream`
16 `&'a mut &mut Map<Repeat, [closure@$DIR/issue-30786.rs:126:27: 126:36]>: Stream`
17 --> $DIR/issue-30786.rs:105:9
3c0e092e
XL
18 |
19LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
20 | ^^^^^^^^^ ^
416331ca 21
a2a8927a
XL
22error[E0599]: the method `countx` exists for struct `Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:139:30: 139:42]>`, but its trait bounds were not satisfied
23 --> $DIR/issue-30786.rs:140:24
f035d41b
XL
24 |
25LL | pub struct Filter<S, F> {
26 | -----------------------
27 | |
28 | method `countx` not found for this
29 | doesn't satisfy `_: StreamExt`
30...
31LL | let count = filter.countx();
a2a8927a 32 | ^^^^^^ method cannot be called on `Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:139:30: 139:42]>` due to unsatisfied trait bounds
f035d41b 33 |
3c0e092e 34note: the following trait bounds were not satisfied because of the requirements of the implementation of `StreamExt` for `_`:
a2a8927a
XL
35 `&'a mut Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:139:30: 139:42]>: Stream`
36 `&'a mut &Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:139:30: 139:42]>: Stream`
37 `&'a mut &mut Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:139:30: 139:42]>: Stream`
38 --> $DIR/issue-30786.rs:105:9
3c0e092e
XL
39 |
40LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
41 | ^^^^^^^^^ ^
f035d41b
XL
42
43error: aborting due to 2 previous errors
416331ca 44
f035d41b 45For more information about this error, try `rustc --explain E0599`.