Sign in
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
const10.rs
blob: 9ab82744fbd8af978f115535e331f5d9df49b412 [
file
] [
log
] [
blame
]
const
fn
foo
(
a
:
&
mut
i32
)
{
// { dg-error "mutable references are not allowed in constant functions" }
*
a
=
1
;
}