2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2013-09-16 08:05:47 -05:00
|
|
|
/*
|
|
|
|
|
|
|
|
#7770 ICE with sibling methods containing same-name-enum containing
|
|
|
|
same-name-member
|
|
|
|
|
|
|
|
If you have two methods in an impl block, each containing an enum
|
|
|
|
(with the same name), each containing at least one value with the same
|
|
|
|
name, rustc gives the same LLVM symbol for the two of them and fails,
|
|
|
|
as it does not include the method name in the symbol name.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
pub struct Foo;
|
|
|
|
impl Foo {
|
|
|
|
pub fn foo() {
|
2020-11-25 16:00:28 -06:00
|
|
|
enum Panic { Common }
|
2013-09-16 08:05:47 -05:00
|
|
|
}
|
|
|
|
pub fn bar() {
|
2020-11-25 16:00:28 -06:00
|
|
|
enum Panic { Common }
|
2013-09-16 08:05:47 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-25 02:43:37 -05:00
|
|
|
pub fn main() {}
|