Rust one-liner solution
rust\nconst DIV: u64 = 1_000_000_007;\n\nimpl Solution {\n    pub fn concatenated_binary(n: i32) -> i32 {\n        (2..=n).fold(1_u64, |acc, x| {\n            (
```rust\nconst DIV: u64 = 1_000_000_007;\n\nimpl Solution {\n    pub fn concatenated_binary(n: i32) -> i32 {\n        (2..=n).fold(1_u64, |acc, x| {\n            ((acc << (32 - x.leading_zeros())) + x as u64) % DIV\n        }) as i32\n    }\n}\n```
['Rust']