Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

a type named char_type has already been defined in this module #13

Closed
ctaggart opened this issue Apr 22, 2017 · 1 comment
Closed

a type named char_type has already been defined in this module #13

ctaggart opened this issue Apr 22, 2017 · 1 comment

Comments

@ctaggart
Copy link
Owner

ctaggart commented Apr 22, 2017

error[E0428]: a type named `char_type` has already been defined in this module
     --> src\lib.rs:64521:5
      |
64519 |     pub type char_type = u8;
      |     ------------------------ previous definition of `char_type` here
64520 |     pub type int_type = u32;
64521 |     pub type char_type = u16;
      |     ^^^^^^^^^^^^^^^^^^^^^^^^^ `char_type` already defined

error[E0428]: a type named `int_type` has already been defined in this module
     --> src\lib.rs:64522:5
      |
64520 |     pub type int_type = u32;
      |     ------------------------ previous definition of `int_type` here
64521 |     pub type char_type = u16;
64522 |     pub type int_type = u16;
      |     ^^^^^^^^^^^^^^^^^^^^^^^^ `int_type` already defined

The generated code is:

    pub type char_type = u8;
    pub type int_type = u32;
    pub type char_type = u16;
    pub type int_type = u16;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant