2016-03-08 17:23:52 -06:00
|
|
|
// Check that specialization must be ungated to use the `default` keyword
|
|
|
|
|
2017-01-10 19:25:44 -06:00
|
|
|
// gate-test-specialization
|
|
|
|
|
2015-12-30 17:25:31 -06:00
|
|
|
trait Foo {
|
|
|
|
fn foo(&self);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<T> Foo for T {
|
2016-03-08 17:23:52 -06:00
|
|
|
default fn foo(&self) {} //~ ERROR specialization is unstable
|
2015-12-30 17:25:31 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|