We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
struct A; impl A { fn foo(&mut self) { } } fn main() { let a = box A; a.foo(); }
Gives:
test.rs:11:5: 11:6 error: cannot borrow immutable dereference of `~`-pointer `*a` as mutable test.rs:11 a.foo();