Sign in
fuchsia
/
third_party
/
rust
/
d782f09ae0b88a73a69e2fa3169222cdbc47d4ec
/
.
/
src
/
test
/
ui
/
specialization
/
specialization-feature-gate-default.rs
blob: 8bad3ac0a1fb38b1b0e55de8e7dd0e09a9b8c017 [
file
] [
log
] [
blame
]
// Check that specialization must be ungated to use the `default` keyword
// gate-test-specialization
trait
Foo
{
fn
foo
(&
self
);
}
impl
<
T
>
Foo
for
T
{
default
fn
foo
(&
self
)
{}
//~ ERROR specialization is unstable
}
fn
main
()
{}