Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-35600.rs
blob: 40df0b6dfd890b07f6c4f7ce466b2d6d04efe7b4 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
allow
(
non_camel_case_types
)]
#![
allow
(
unused_variables
)]
trait
Foo
{
type
bar
;
fn
bar
();
}
impl
Foo
for
()
{
type
bar
=
();
fn
bar
()
{}
}
fn
main
()
{
let
x
:
<()
as
Foo
>::
bar
=
();
<()>::
bar
();
}