1 // run-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4 
5 /*
6 
7 #7770 ICE with sibling methods containing same-name-enum containing
8  same-name-member
9 
10 If you have two methods in an impl block, each containing an enum
11 (with the same name), each containing at least one value with the same
12 name, rustc gives the same LLVM symbol for the two of them and fails,
13 as it does not include the method name in the symbol name.
14 
15 */
16 
17 pub struct Foo;
18 impl Foo {
foo()19     pub fn foo() {
20         enum Panic { Common }
21     }
bar()22     pub fn bar() {
23         enum Panic { Common }
24     }
25 }
26 
main()27 pub fn main() {}
28