mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 20:03:37 +00:00
Fix filter_map in minicore
This commit is contained in:
parent
fa923f9b19
commit
e0e6bfb924
@ -1750,3 +1750,15 @@ pub fn test() {
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn resolve_minicore_iterator() {
|
||||
check_types(
|
||||
r#"
|
||||
//- minicore: iterators, sized
|
||||
fn foo() {
|
||||
let m = core::iter::repeat(()).filter_map(|()| Some(92)).next();
|
||||
} //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Option<i32>
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
@ -518,7 +518,7 @@ pub mod iter {
|
||||
}
|
||||
}
|
||||
}
|
||||
pub use self::adapters::Take;
|
||||
pub use self::adapters::{Take, FilterMap};
|
||||
|
||||
mod sources {
|
||||
mod repeat {
|
||||
|
Loading…
Reference in New Issue
Block a user