rust/tests/ui/lazy-type-alias/unconstrained-params-in-imp...

9 lines
190 B
Rust

#![feature(lazy_type_alias)]
#![allow(incomplete_features)]
impl<T> Loop<T> {} //~ ERROR the type parameter `T` is not constrained
type Loop<T> = Loop<T>; //~ ERROR overflow
fn main() {}