Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-28828.rs
blob: b5d7385cf28f0e771902f96bc93c685441bb4bae [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
pub
trait
Foo
{
type
Out
;
}
impl
Foo
for
()
{
type
Out
=
bool
;
}
fn
main
()
{
type
Bool
=
<()
as
Foo
>::
Out
;
let
x
:
Bool
=
true
;
assert
!(
x
);
let
y
:
Option
<
Bool
>
=
None
;
assert_eq
!(
y
,
None
);
}