Constants in Rust are like #defines in C - they are inlined into every place they're used. To have one global value operated from multiple places, use static.
const means that the value just gets copied around, so you're actually just mutating a temporary. If you want all mentions of FLAG to refer to the same value, then you should do as @Cerber-Ursi says, and use static