mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 21:17:39 +00:00
12 lines
211 B
Rust
12 lines
211 B
Rust
![]() |
// 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() {}
|