blob: 119f7df1ffdad4b359c10354ed9d9db6aabbe668 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Crate that exports an opaque `impl Trait` type. Used for testing cross-crate.
#![crate_type = "rlib"]
#![feature(type_alias_impl_trait)]
pub trait View {
type Tmp: Iterator<Item = u32>;
fn test(&self) -> Self::Tmp;
}
pub struct X;
impl View for X {
type Tmp = impl Iterator<Item = u32>;
fn test(&self) -> Self::Tmp {
vec![1, 2, 3].into_iter()
}
}
|