blob: 89158b65a6e293c814094a6a9ab8dc1c72836be4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Check that specialization must be ungated to use the `default` keyword
trait Foo {
fn foo(&self);
}
default impl<T> Foo for T { //~ ERROR specialization is unstable
fn foo(&self) {}
}
fn main() {}
|