File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -204,11 +204,13 @@ It's also not allowed to use numeric casts (`as`) on enums that contain any non-
204204> let _ = EnumWithNonExhaustiveVariants :: First as u8 ;
205205> ```
206206
207- Non - exhaustive types are always considered inhabited in downstream crates .
207+ r [attributes . type - system . non_exhaustive. inhabited]
208+ Non - exhaustive types are always considered [inhabited ] in downstream crates , even though the constructors are not accessible .
208209
209210[`match `]: .. / expressions / match - expr . md
210211[attributes ]: .. / attributes . md
211212[enum ]: .. / items / enumerations . md
212213[functional update syntax ]: .. / expressions / struct - expr . md#functional - update - syntax
213214[struct ]: .. / items / structs . md
214215[visibility ]: .. / visibility - and - privacy . md
216+ [inhabited ]: .. / glossary . md#inhabited
You can’t perform that action at this time.
0 commit comments