Debian Codegraph @

gcc/testsuite/rust/compile/enum_discriminant2.rs

raw
1 fn test() -> isize {
2 1
3 }
4
5 enum Foo {
6 Bar = test() // { dg-error "only functions marked as .const." }
7 }
8
9 fn main() {}