2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2013-09-16 23:05:47 +10: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 17:00:28 -05:00
|
|
|
enum Panic { Common }
|
2013-09-16 23:05:47 +10:00
|
|
|
}
|
|
|
|
pub fn bar() {
|
2020-11-25 17:00:28 -05:00
|
|
|
enum Panic { Common }
|
2013-09-16 23:05:47 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-25 00:43:37 -07:00
|
|
|
pub fn main() {}
|