2024-09-21 07:04:42 +00:00
|
|
|
// regression test for #118987
|
2024-03-30 00:21:25 +01:00
|
|
|
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
|
|
|
|
|
|
|
|
trait Assoc {
|
|
|
|
type Output;
|
|
|
|
}
|
|
|
|
|
|
|
|
default impl<T: Clone> Assoc for T {
|
|
|
|
type Output = bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Assoc for u8 {}
|
|
|
|
|
|
|
|
trait Foo {}
|
|
|
|
|
|
|
|
impl Foo for <u8 as Assoc>::Output {}
|
|
|
|
impl Foo for <u16 as Assoc>::Output {}
|
2024-09-21 07:04:42 +00:00
|
|
|
//~^ ERROR the trait bound `u16: Assoc` is not satisfied
|
|
|
|
fn main() {}
|