Closed ctron closed 4 years ago
You can work around this using the following code:
let mut foo = Foo(buffer);
let foo = Foo(&mut foo.0[..]);
foo.foo();
But this requires to have a mut
instance, even for "read-only" operations.
Like #28, this is fixed in the beta toolchain.
But this requires to have a mut instance, even for "read-only" operations.
This part of the issue is the same as #23
I think this is similar to the issue #21:
Assume the following code:
This will result in:
If you lower the size to "32" (or less), it works.