]> git.lizzy.rs Git - rust.git/blob - src/test/ui/symbol-names/const-generics-demangling.rs
Auto merge of #94402 - erikdesjardins:revert-coldland, r=nagisa
[rust.git] / src / test / ui / symbol-names / const-generics-demangling.rs
1 // build-fail
2 // compile-flags: -C symbol-mangling-version=v0 --crate-name=c
3 // normalize-stderr-test: "c\[.*?\]" -> "c[HASH]"
4 #![feature(rustc_attrs)]
5
6 pub struct Unsigned<const F: u8>;
7
8 #[rustc_symbol_name]
9 //~^ ERROR symbol-name(_RMCs
10 //~| ERROR demangling(<c[
11 //~| ERROR demangling-alt(<c::Unsigned<11>>)
12 impl Unsigned<11> {}
13
14 pub struct Signed<const F: i16>;
15
16 #[rustc_symbol_name]
17 //~^ ERROR symbol-name(_RMs_Cs
18 //~| ERROR demangling(<c[
19 //~| ERROR demangling-alt(<c::Signed<-152>>)
20 impl Signed<-152> {}
21
22 pub struct Bool<const F: bool>;
23
24 #[rustc_symbol_name]
25 //~^ ERROR symbol-name(_RMs0_Cs
26 //~| ERROR demangling(<c[
27 //~| ERROR demangling-alt(<c::Bool<true>>)
28 impl Bool<true> {}
29
30 pub struct Char<const F: char>;
31
32 #[rustc_symbol_name]
33 //~^ ERROR symbol-name(_RMs1_Cs
34 //~| ERROR demangling(<c[
35 //~| ERROR demangling-alt(<c::Char<'∂'>>)
36 impl Char<'∂'> {}
37
38 fn main() {}