//@ check-pass //@ revisions: legacy v0 //@[legacy]compile-flags: -Z unstable-options -C symbol-mangling-version=legacy --crate-type=lib //@[v0]compile-flags: -C symbol-mangling-version=v0 --crate-type=lib // `char` pub struct Char; impl Char<'A'> { pub fn foo() {} } impl Char { pub fn bar() {} } // `i8` pub struct I8; impl I8<{i8::MIN}> { pub fn foo() {} } impl I8<{i8::MAX}> { pub fn foo() {} } impl I8 { pub fn bar() {} } // `i16` pub struct I16; impl I16<{i16::MIN}> { pub fn foo() {} } impl I16 { pub fn bar() {} } // `i32` pub struct I32; impl I32<{i32::MIN}> { pub fn foo() {} } impl I32 { pub fn bar() {} } // `i64` pub struct I64; impl I64<{i64::MIN}> { pub fn foo() {} } impl I64 { pub fn bar() {} } // `i128` pub struct I128; impl I128<{i128::MIN}> { pub fn foo() {} } impl I128 { pub fn bar() {} } // `isize` pub struct ISize; impl ISize<3> { pub fn foo() {} } impl ISize { pub fn bar() {} }