diff options
Diffstat (limited to 'tests/ui/impl-trait/issue-46959.rs')
-rw-r--r-- | tests/ui/impl-trait/issue-46959.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/issue-46959.rs b/tests/ui/impl-trait/issue-46959.rs new file mode 100644 index 000000000..3611a9568 --- /dev/null +++ b/tests/ui/impl-trait/issue-46959.rs @@ -0,0 +1,9 @@ +// 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() {} |