Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
specialization
/
specialization-out-of-order.rs
blob: 94e764f76366ee86bcd7c899f60122643682c067 [
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
=
();
}
impl
<
T
>
Foo
for
T
{
default
type
Out
=
bool
;
}
fn
main
()
{}