summaryrefslogtreecommitdiffstats
path: root/tests/ui/specialization/issue-45814.rs
blob: fce236390c2b0e78ef913361fbb234ac87f6d7b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//~ ERROR overflow evaluating the requirement `T: Trait<_>`
// revisions: current negative
#![feature(specialization)]
#![cfg_attr(negative, feature(with_negative_coherence))]
#![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() {}