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