Fixup tests
This commit is contained in:
parent
1245467322
commit
1caa6dc546
2 changed files with 11 additions and 4 deletions
|
|
@ -1,14 +1,20 @@
|
|||
error: higher-ranked subtype error
|
||||
--> $DIR/issue-30786.rs:113:18
|
||||
--> $DIR/issue-30786.rs:108:15
|
||||
|
|
||||
LL | let map = source.map(|x: &_| x);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: higher-ranked subtype error
|
||||
--> $DIR/issue-30786.rs:114:18
|
||||
|
|
||||
LL | let filter = map.filter(|x: &_| true);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: higher-ranked subtype error
|
||||
--> $DIR/issue-30786.rs:115:17
|
||||
--> $DIR/issue-30786.rs:116:17
|
||||
|
|
||||
LL | let count = filter.count(); // Assert that we still have a valid stream.
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,8 @@ impl<T> StreamExt for T where for<'a> &'a mut T: Stream { }
|
|||
fn main() {
|
||||
let source = Repeat(10);
|
||||
let map = source.map(|x: &_| x);
|
||||
//[migrate]~^ ERROR implementation of `Stream` is not general enough
|
||||
//[nll]~^ ERROR higher-ranked subtype error
|
||||
//[migrate]~^^ ERROR implementation of `Stream` is not general enough
|
||||
//[migrate]~| NOTE `Stream` would have to be implemented for the type `&'0 mut Map
|
||||
//[migrate]~| NOTE but `Stream` is actually implemented for the type `&'1
|
||||
//[migrate]~| NOTE implementation of `Stream` is not general enough
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue