summary refs log tree commit diff
path: root/src/test/ui/issues/issue-35600.rs
blob: 9d74726d279e54c35f1477ca4f68e4615ca6ef8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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();
}