Skip to content

Commit d6e1b20

Browse files
committed
Fix a codegen test
1 parent a71628c commit d6e1b20

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/codegen/sanitizer-cfi-emit-type-metadata-id-itanium-cxx-abi.rs

+13-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,19 @@ pub type Type9 = impl Send;
6161
pub type Type10 = impl Send;
6262
pub type Type11 = impl Send;
6363

64-
pub fn fn1<'a>() {
64+
pub fn fn1<'a>() where
65+
Type1: 'static,
66+
Type2: 'static,
67+
Type3: 'static,
68+
Type4: 'static,
69+
Type5: 'static,
70+
Type6: 'static,
71+
Type7: 'static,
72+
Type8: 'static,
73+
Type9: 'static,
74+
Type10: 'static,
75+
Type11: 'static,
76+
{
6577
// Closure
6678
let closure1 = || { };
6779
let _: Type1 = closure1;

0 commit comments

Comments
 (0)