Published a way to bypass the borrow checker in Rust

Jakub KΔ…dzioΕ‚ka published a proof-of-concept showing the immediate problems associated with a bug in the Rust compiler project, which the developers have been unsuccessfully trying to solve for the past four years.

An example developed by Jakub allows you to bypass the Borrow Checker with a very simple trick:

fnmain() {
let boom = fake_static::make_static(&vec![0; 1<<20]);
println!("{:?}", boom);
}

The developer asks not to use this workaround in Production, as its purpose was only to draw attention to an issue ignored by the Rust developers.

Source: linux.org.ru

Add a comment