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
I wrote an implementation for Clone but forgot to import it. Here's the error I got initially:
src/server/service.rs:123:67: 123:74 error: no method named `clone` found for type `server::service::OpenTime` in the current scope
src/server/service.rs:123 s.open_times.insert(key.clone().to_string(), (*value).clone());
^~~~~~~
note: in expansion of for loop expansion
src/server/service.rs:122:9: 124:10 note: expansion site
src/server/service.rs:123:67: 123:74 help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `clone`, perhaps you need to implement it:
src/server/service.rs:123:67: 123:74 help: candidate #1: `core::clone::Clone`
After importing core, this came next:
src/server/service.rs:8:1: 8:19 error: use of unstable library feature 'core'
src/server/service.rs:8 extern crate core;
It's a bit misleading to suggest core and not the std library version of it.
The text was updated successfully, but these errors were encountered:
diagnostics: make paths to external items more visible
This PR changes the reported path for an external item so that it is visible from at least one local module (i.e. it does not use any inaccessible external modules) if possible. If the external item's crate was declared with an `extern crate`, the path is guarenteed to use the `extern crate`.
Fixes#23224, fixes#23355, fixes#26635, fixes#27165.
r? @nrc
I wrote an implementation for Clone but forgot to import it. Here's the error I got initially:
After importing core, this came next:
It's a bit misleading to suggest core and not the std library version of it.
The text was updated successfully, but these errors were encountered: