Sign in
rust
/
rust
/
4e2ede2c5bc2f8790ef28fdf43ebab3e2f5c80a0
/
.
/
tests
/
ui
/
specialization
/
defaultimpl
/
specialization-feature-gate-default.rs
blob: 89158b65a6e293c814094a6a9ab8dc1c72836be4 [
file
]
// 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
()
{}