rust/tests/ui/lint/non-local-defs/ref-complex.rs

17 lines
250 B
Rust

//@ check-pass
trait Trait<T> {}
fn main() {
mod below {
pub struct Type<T>(T);
}
struct InsideMain;
trait HasFoo {}
impl<T> Trait<InsideMain> for &Vec<below::Type<(InsideMain, T)>>
where
T: HasFoo
{}
}