☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
const3.rs
☽
☼
gcc/testsuite/rust/compile/const3.rs
code
plain
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
}