-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specifically
Description
Code example:
Save this in main.rs
and try to compile.
enum T {}
type New = T;
impl New {}
fn main() {}
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
Metadata
Metadata
Assignees
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specifically