//@ build-fail //@ revisions: legacy v0 //@ compile-flags: --crate-name=c //@[legacy]compile-flags: -C symbol-mangling-version=legacy -Z unstable-options //@ [v0]compile-flags: -C symbol-mangling-version=v0 //@[legacy]normalize-stderr-test: "h[[:xdigit:]]{16}" -> "h[HASH]" //@ [v0]normalize-stderr-test: "c\[.*?\]" -> "c[HASH]" #![feature(rustc_attrs)] pub struct Unsigned; impl Unsigned<11> { #[rustc_symbol_name] //[v0]~^ ERROR symbol-name(_RNvMCs //[v0]~| ERROR demangling(>::f) //[legacy]~^^^^ ERROR symbol-name(_ZN1c21Unsigned$LT$11_u8$GT$ //[legacy]~| ERROR demangling(c::Unsigned<11_u8>::f:: //[legacy]~| ERROR demangling-alt(c::Unsigned<11_u8>::f) fn f() {} } pub struct Signed; impl Signed<-152> { #[rustc_symbol_name] //[v0]~^ ERROR symbol-name(_RNvMs_Cs //[v0]~| ERROR demangling(>::f) //[legacy]~^^^^ ERROR symbol-name(_ZN1c22Signed$LT$.152_i16$GT$ //[legacy]~| ERROR demangling(c::Signed<.152_i16>::f:: //[legacy]~| ERROR demangling-alt(c::Signed<.152_i16>::f) fn f() {} } pub struct Bool; impl Bool { #[rustc_symbol_name] //[v0]~^ ERROR symbol-name(_RNvMs0_Cs //[v0]~| ERROR demangling(>::f) //[legacy]~^^^^ ERROR symbol-name(_ZN1c13Bool$LT$_$GT$ //[legacy]~| ERROR demangling(c::Bool<_>::f:: //[legacy]~| ERROR demangling-alt(c::Bool<_>::f) fn f() {} } pub struct Char; impl Char<'∂'> { #[rustc_symbol_name] //[v0]~^ ERROR symbol-name(_RNvMs1_Cs //[v0]~| ERROR demangling(>::f) //[legacy]~^^^^ ERROR symbol-name(_ZN1c13Char$LT$_$GT$ //[legacy]~| ERROR demangling(c::Char<_>::f:: //[legacy]~| ERROR demangling-alt(c::Char<_>::f) fn f() {} } fn main() {}