]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-35600.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / issues / issue-35600.rs
1 // run-pass
2 #![allow(non_camel_case_types)]
3 #![allow(unused_variables)]
4
5 trait Foo {
6     type bar;
7     fn bar();
8 }
9
10 impl Foo for () {
11     type bar = ();
12     fn bar() {}
13 }
14
15 fn main() {
16     let x: <() as Foo>::bar = ();
17     <()>::bar();
18 }