Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
specialization
/
defaultimpl
/
out-of-order.rs
blob: f9c73a19cfa4665e64f0d83c2de3ecb9ae2dc184 [
file
] [
log
] [
blame
]
// run-pass
// Test that you can list the more specific impl before the more general one.
#![
feature
(
specialization
)]
trait
Foo
{
type
Out
;
}
impl
Foo
for
bool
{
type
Out
=
();
}
default
impl
<
T
>
Foo
for
T
{
type
Out
=
bool
;
}
fn
main
()
{}