mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 05:56:56 +00:00
26 lines
327 B
Rust
26 lines
327 B
Rust
//@ known-bug: #136661
|
|
|
|
#![allow(unused)]
|
|
|
|
trait Supertrait<T> {}
|
|
|
|
trait Other {
|
|
fn method(&self) {}
|
|
}
|
|
|
|
impl WithAssoc for &'static () {
|
|
type As = ();
|
|
}
|
|
|
|
trait WithAssoc {
|
|
type As;
|
|
}
|
|
|
|
trait Trait<P: WithAssoc>: Supertrait<P::As> {
|
|
fn method(&self) {}
|
|
}
|
|
|
|
fn hrtb<T: for<'a> Trait<&'a ()>>() {}
|
|
|
|
pub fn main() {}
|