blob: 42e28b9674b3097bc7cb340e2821ea3693d72b65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// run-pass
fn vec() {
let mut _x = vec!['c'];
let _y = &_x;
_x = Vec::new();
}
fn int() {
let mut _x = 5;
let _y = &_x;
_x = 7;
}
fn main() {
vec();
int();
}
|