☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
const1.rs
☽
☼
gcc/testsuite/rust/compile/const1.rs
code
plain
raw
1
fn bar() {}
2
3
const fn foo() {
4
bar(); // { dg-error "only functions marked as .const. are allowed to be called from constant contexts" }
5
}
6