let mut n = 11; let p: &int = &123; p + n; // OK n + p; // error: mismatched types: expected `int` but found `&int`
Shouldn't this error be considered a compiler-bug? The Add trait says '&' for rhs after all: fn add(&self, rhs: &RHS) -> Result; -Tommi _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
