Files
rust/tests/crashes/136661.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
327 B
Rust
Raw Normal View History

2025-03-07 23:17:25 +01:00
//@ 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() {}