Closed
Description
The following seems annoying (and is especially so for writing macros/syntax extensions)
fn main() {
let x: & int = &1;
x.eq(&x); // `x == x` works fine
}
auto-deref.rs:6:9: 6:11 error: mismatched types: expected `&int` but found `&&int` (expected int but found &-ptr)
auto-deref.rs:6 x.eq(&x);
^~
error: aborting due to previous error
Metadata
Metadata
Assignees
Labels
No labels