1 An unknown tuple struct/variant has been used.
3 Erroneous code example:
6 let Type(x) = Type(12); // error!
13 In most cases, it's either a forgotten import or a typo. However, let's look at
14 how you can have such a type:
17 struct Type(u32); // this is a tuple struct
20 Bar(u32), // this is a tuple variant
23 use Foo::*; // To use Foo's variant directly, we need to import them in
27 Either way, it should work fine with our previous code:
37 let Type(x) = Type(12); // ok!