1 2 3 4 5 6 7
fn foo() { 1 = 3; // { dg-error "assignment of read-only location" } } fn main() { foo(); }