summary refs log tree commit diff
path: root/src/test/ui/specialization/defaultimpl/specialization-wfcheck.rs
blob: afd634725e365adfcfe9eeee34096d7fa0cf3d15 (plain)
1
2
3
4
5
6
7
8
9
10
// Tests that a default impl still has to have a WF trait ref.

#![feature(specialization)] //~ WARN the feature `specialization` is incomplete

trait Foo<'a, T: Eq + 'a> { }

default impl<U> Foo<'static, U> for () {}
//~^ ERROR the trait bound `U: std::cmp::Eq` is not satisfied

fn main(){}