mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
16 lines
175 B
Rust
16 lines
175 B
Rust
//@ pp-exact
|
|
|
|
|
|
mod m {
|
|
pub trait Tr {
|
|
type Ts: super::Tu;
|
|
}
|
|
}
|
|
|
|
trait Tu {
|
|
fn dummy() {}
|
|
}
|
|
|
|
fn foo<T: m::Tr>() { <T as m::Tr>::Ts::dummy(); }
|
|
|
|
fn main() {}
|