mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 13:07:37 +00:00
17 lines
250 B
Rust
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
|
||
|
{}
|
||
|
}
|