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
impl.rs:4:1: 4:12 error: cannot associate methods with a type outside the crate the type is defined in; define and implement a trait or new type instead
impl.rs:4 impl New {}
^~~~~~~~~~~
error: aborting due to previous error
Code example:
Save this in
main.rs
and try to compile.Trying to compile, it shows this error:
impl.rs:4:1: 4:12 error: cannot associate methods with a type outside the crate the type is defined in; define and implement a trait or new type instead
impl.rs:4 impl New {}
^~~~~~~~~~~
error: aborting due to previous error
Using git master HEAD: 6fcf43e
The text was updated successfully, but these errors were encountered: