Skip to content

Commit de76c66

Browse files
committed
Make const_arg_in_fn actually codegen the function
1 parent d937332 commit de76c66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/run-pass/const_generics/const_arg_in_fn.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ fn const_u32_identity<const X: u32>() -> u32 {
1515
X
1616
}
1717

18-
fn main() {}
18+
fn main() {
19+
println!("{:?}", foo::<18>());
20+
}

0 commit comments

Comments
 (0)