diff options
| author | bjornwsv <william@sveinbjornsson.com> | 2017-09-23 21:45:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-23 21:45:23 +0200 |
| commit | 06a46e0b5a201ed74944c9b5dace025a8476ee13 (patch) | |
| tree | bacbce3c012aa303dc94b55e13047d8cb4956e45 | |
| parent | a87d43dc230cc477d948bf4fb0ef0101c165fa0e (diff) | |
Update modules2.rs
Your wish seems to have been granted:)
The compiler now says:
error[E0603]: constant `democrat` is private
| -rw-r--r-- | modules/modules2.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/modules2.rs b/modules/modules2.rs index e6d6f4c..e8875a4 100644 --- a/modules/modules2.rs +++ b/modules/modules2.rs @@ -42,6 +42,3 @@ fn main() { // its internal structure (the `democrats` and `republicans` modules and // associated constants). It's almost there except for one keyword missing for // each constant. -// One more hint: I wish the compiler error, instead of saying "unresolved name -// `us_presidential_frontrunners::democrat`", could say "constant -// `us_presidential_frontrunners::democrat` is private"!
\ No newline at end of file |
