We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following program fails to run:
struct Test; fn call(a, b) { a + b } impl Test { fn call(self) { call(1, 2) } } pub fn main() { let test = Test; assert_eq!(test.call(), 3); }
This is because the call(1, 2) incorrectly resolves to Test::call.
call(1, 2)
Test::call
The text was updated successfully, but these errors were encountered:
Avoid instance fns during initial item lookup (fixes #454)
6461f36
d98d7ca
436e931
No branches or pull requests
The following program fails to run:
This is because the
call(1, 2)
incorrectly resolves toTest::call
.The text was updated successfully, but these errors were encountered: