]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/borrow-use-issue-46875.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / nll / borrow-use-issue-46875.rs
1 // run-pass
2
3 fn vec() {
4     let mut _x = vec!['c'];
5     let _y = &_x;
6     _x = Vec::new();
7 }
8
9 fn int() {
10     let mut _x = 5;
11     let _y = &_x;
12     _x = 7;
13 }
14
15 fn main() {
16     vec();
17     int();
18 }