E4052

E4052#

类型/特征名称与先前定义的标识符重复。

这发生在你定义了相同名称的类型和特征时。

错误示例#

pub type A
pub trait A {} // Error: The trait A duplicates with type A previously defined at ...

建议#

将类型或特征改为其他名称。

pub type A
pub trait B {}