rust/tests/ui/impl-trait/issue-46959.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
177 B
Rust
Raw Normal View History

// check-pass
#![deny(non_camel_case_types)]
#[allow(dead_code)]
fn qqq(lol: impl Iterator<Item=u32>) -> impl Iterator<Item=u64> {
lol.map(|x|x as u64)
}
fn main() {}