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