You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect compiler hints for traits with methods defined using raw identifiers #65634
error[E0034]: multiple applicable items in scope
--> src/main.rs:22:13
|
22 | r#fn {}.r#struct();
| ^^^^^^^^ multiple `struct` found
|
note: candidate #1 is defined in an impl of the trait `async` for the type `fn`
--> src/main.rs:5:5
|
5 | fn r#struct(&self) {
| ^^^^^^^^^^^^^^^^^^
= help: to disambiguate the method call, write `async::struct(r#fn {})` instead
note: candidate #2 is defined in an impl of the trait `await` for the type `fn`
--> src/main.rs:11:5
|
11 | fn r#struct(&self) {
| ^^^^^^^^^^^^^^^^^^
= help: to disambiguate the method call, write `await::struct(r#fn {})` instead
async::struct(r#fn {}) should be r#async::r#struct(&r#fn {})and await::struct(r#fn {}) should be r#await::r#struct(&r#fn {}). It also misses that function signatures require not self but &self, however this also happens when not using raw identifiers, so I will open another issue for this case.
Activity
Accurately portray raw identifiers in error messages
Rollup merge of rust-lang#67010 - estebank:raw-idents, r=Centril
Rollup merge of rust-lang#67010 - estebank:raw-idents, r=Centril
Rollup merge of rust-lang#67010 - estebank:raw-idents, r=Centril
Rollup merge of rust-lang#67010 - estebank:raw-idents, r=Centril