Debian Codegraph @

gcc/testsuite/rust/compile/const3.rs

raw
1 fn size() -> usize {
2 15
3 }
4
5 fn main() {
6 let a = [15; size()]; // { dg-error "only functions marked as .const. are allowed to be called from constant contexts" }
7 }