Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upConfusing error message when using CellRef #41865
Comments
This was referenced May 11, 2017
This comment has been minimized.
This comment has been minimized.
|
I'm going to close this as the underlying problem here is #41906. |
Mark-Simulacrum
closed this
Jun 22, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
spirali commentedMay 9, 2017
Hello,
It took me some time to understand the following problem.
The following code ends with error:
However, the similar construction works in many other situation and a natural fix (let sb : &S = &s.borrow();) does not work. I was not able to understand the problem until @gavento pointed out that the problem is with
use std::borrow::Borrow;. When the line is removed, the code is compiled without any error.I suggest to improve the error message in a way that indicates that problem is with the borrow method, since the current error message pointing to the structure usage is quite confusing (at least for me:).