rust/tests/ui/traits/next-solver/alias-relate/opaque-hidden-ty-is-rigid-alias.rs

9 lines
118 B
Rust

// check-pass
// compile-flags: -Znext-solver
fn test<T: Iterator>(x: T::Item) -> impl Sized {
x
}
fn main() {}