2022-07-27 00:06:46 -05:00
|
|
|
//~ ERROR overflow evaluating the requirement `T: Trait<_>`
|
2022-11-18 07:51:24 -06:00
|
|
|
// revisions: current negative
|
2022-07-27 00:06:46 -05:00
|
|
|
#![feature(specialization)]
|
2022-11-18 07:51:24 -06:00
|
|
|
#![cfg_attr(negative, feature(with_negative_coherence))]
|
2022-07-27 00:06:46 -05:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
pub trait Trait<T> {}
|
|
|
|
|
|
|
|
default impl<T, U> Trait<T> for U {}
|
|
|
|
|
|
|
|
impl<T> Trait<<T as Iterator>::Item> for T {}
|
|
|
|
|
|
|
|
fn main() {}
|