2018-02-14 11:25:42 -06:00
|
|
|
// Tests that a default impl still has to have a WF trait ref.
|
|
|
|
|
2020-05-17 03:22:48 -05:00
|
|
|
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
|
2017-11-21 01:27:20 -06:00
|
|
|
|
|
|
|
trait Foo<'a, T: Eq + 'a> { }
|
|
|
|
|
|
|
|
default impl<U> Foo<'static, U> for () {}
|
2020-09-02 02:40:56 -05:00
|
|
|
//~^ ERROR the trait bound `U: Eq` is not satisfied
|
2017-11-21 01:27:20 -06:00
|
|
|
|
2018-02-07 00:58:01 -06:00
|
|
|
fn main(){}
|