rust/src/test/ui/variance-iterators-in-libcore.rs
2019-07-27 18:56:16 +03:00

10 lines
162 B
Rust

// run-pass
#![allow(warnings)]
use std::iter::Zip;
fn zip_covariant<'a, A, B>(iter: Zip<&'static A, &'static B>) -> Zip<&'a A, &'a B> { iter }
fn main() { }