Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
issues
/
issue-28828.rs
blob: 03968809eb724ace65f7f475952199506f3f2d38 [
file
] [
log
] [
blame
]
// 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
);
}