2011-06-10 09:38:13 -05:00
|
|
|
// error-pattern:mutable alias to a variable that roots another alias
|
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn f(a: &int, b: &mutable int) -> int { b += 1; ret a + b; }
|
2011-06-10 09:38:13 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { let i = 4; log f(i, i); }
|