Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
specialization
/
defaultimpl
/
specialization-feature-gate-default.rs
blob: 89158b65a6e293c814094a6a9ab8dc1c72836be4 [
file
] [
log
] [
blame
] [
edit
]
// 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
()
{}