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
Improve diagnostics on self types in function signature #62373
error[E0599]: no method named `foo` found for type `A` in the current scope
--> src/main.rs:8:7
|
1 | struct A;
| --------- method `foo` not found for this
...
8 | A.foo()
| ^^^
Standard Error
Compiling playground v0.0.1 (/playground)
error[E0599]: no method named `foo` found for type `A` in the current scope
--> src/main.rs:9:7
|
2 | struct A;
| --------- method `foo` not found for this
...
9 | A.foo()
| ^^^
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `foo`, perhaps you need to implement it:
candidate #1: `B`
Activity
hellow554 commentedon Jul 4, 2019
@rustbot modify labels: A-diagnostics T-compiler C-enhancement
[-]Improve diagnostics on self types[/-][+]Improve diagnostics on self types in function signature[/+]Rollup merge of rust-lang#64056 - estebank:arbitrary-self-types, r=Ce…
Rollup merge of rust-lang#64056 - estebank:arbitrary-self-types, r=Ce…
Rollup merge of rust-lang#64056 - estebank:arbitrary-self-types, r=Ce…
Rollup merge of rust-lang#64056 - estebank:arbitrary-self-types, r=Ce…