mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
16 lines
322 B
Rust
16 lines
322 B
Rust
// #66353: ICE when trying to recover from incorrect associated type
|
|
|
|
trait _Func<T> {
|
|
fn func(_: Self);
|
|
}
|
|
|
|
trait _A {
|
|
type AssocT;
|
|
}
|
|
|
|
fn main() {
|
|
_Func::< <() as _A>::AssocT >::func(());
|
|
//~^ ERROR the trait bound `(): _A` is not satisfied
|
|
//~| ERROR the trait bound `(): _Func<_>` is not satisfied
|
|
}
|