mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
14 lines
329 B
Rust
14 lines
329 B
Rust
//~ 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() {}
|