Skip to content

Commit ab31267

Browse files
committed
v0: add (handwritten) const generics test.
1 parent d294ebf commit ab31267

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/v0.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,4 +1037,14 @@ mod tests {
10371037
"alloc::alloc::box_free::<dyn alloc::boxed::FnBox<(), Output = ()>>"
10381038
);
10391039
}
1040+
1041+
#[test]
1042+
fn demangle_const_generics() {
1043+
// NOTE(eddyb) this was hand-written, before rustc had working
1044+
// const generics support (but the mangling format did include them).
1045+
t_nohash!(
1046+
"_RNvINtC8arrayvec8ArrayVechKj7b_E3new",
1047+
"arrayvec::ArrayVec::<u8, 123>::new"
1048+
);
1049+
}
10401050
}

0 commit comments

Comments
 (0)