]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-6936.rs
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[rust.git] / src / test / ui / issues / issue-6936.rs
1 struct T;
2
3 mod t1 {
4     type Foo = ::T;
5     mod Foo {} //~ ERROR the name `Foo` is defined multiple times
6 }
7
8 mod t2 {
9     type Foo = ::T;
10     struct Foo; //~ ERROR the name `Foo` is defined multiple times
11 }
12
13 mod t3 {
14     type Foo = ::T;
15     enum Foo {} //~ ERROR the name `Foo` is defined multiple times
16 }
17
18 mod t4 {
19     type Foo = ::T;
20     fn Foo() {} // ok
21 }
22
23 mod t5 {
24     type Bar<T> = T;
25     mod Bar {} //~ ERROR the name `Bar` is defined multiple times
26 }
27
28 mod t6 {
29     type Foo = ::T;
30     impl Foo {} // ok
31 }
32
33
34 fn main() {}