1 #![feature(rustc_attrs)]
3 // This test is the same code as in ui/issue-53912.rs but this test checks that the symbol mangling
4 // fix produces the correct result, whereas that test just checks that the reproduction compiles
5 // successfully and doesn't segfault
10 pub(crate) struct Foo;
13 pub(crate) struct Foo<T>(T);
15 impl Foo<::llvm::Foo> {
17 //~^ ERROR symbol-name(_ZN11issue_609253foo36Foo$LT$issue_60925..llv$6d$..Foo$GT$3foo
18 //~| ERROR demangling(issue_60925::foo::Foo<issue_60925::llv$6d$..Foo$GT$::foo
19 //~| ERROR demangling-alt(issue_60925::foo::Foo<issue_60925::llv$6d$..Foo$GT$::foo)
22 for _ in &[::dummy()] {