]> git.lizzy.rs Git - rust.git/blob - src/test/ui/E0596.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / E0596.rs
1 // revisions: ast mir
2 //[mir]compile-flags: -Z borrowck=mir
3
4 fn main() {
5     let x = 1;
6     let y = &mut x; //[ast]~ ERROR [E0596]
7                     //[mir]~^ ERROR [E0596]
8 }