gccrs: Handle `async` functions in traits
[official-gcc.git] / gcc / testsuite / rust / compile / issue-2391.rs
blob4904502c7c18e56cbcf74cbaf35d62a884351f37
1 #![allow(unused)]
2 const SOME_CONST: i32 = 12;
4 fn some_function() {
5     SOME_CONST = 15; // { dg-error "assignment of read-only location" }
8 fn main() {
9     some_function();