mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
28 lines
433 B
Rust
28 lines
433 B
Rust
//@ known-bug: #103899
|
|
|
|
trait BaseWithAssoc {
|
|
type Assoc;
|
|
}
|
|
|
|
trait WrapperWithAssoc {
|
|
type BaseAssoc: BaseWithAssoc;
|
|
}
|
|
|
|
struct Wrapper<B> {
|
|
inner: B,
|
|
}
|
|
|
|
struct ProjectToBase<T: BaseWithAssoc> {
|
|
data_type_h: T::Assoc,
|
|
}
|
|
|
|
struct DoubleProject<L: WrapperWithAssoc> {
|
|
buffer: Wrapper<ProjectToBase<L::BaseAssoc>>,
|
|
}
|
|
|
|
fn trigger<L: WrapperWithAssoc<BaseAssoc = ()>>() -> DoubleProject<L> {
|
|
loop {}
|
|
}
|
|
|
|
fn main() {}
|