rust/src/test/ui/issues/issue-35600.rs
2019-07-27 18:56:16 +03:00

17 lines
204 B
Rust

// run-pass
#![allow(unused_variables)]
trait Foo {
type bar;
fn bar();
}
impl Foo for () {
type bar = ();
fn bar() {}
}
fn main() {
let x: <() as Foo>::bar = ();
<()>::bar();
}