The beds page in the encyclopedia doesn’t mention that:
You can sleep during a thunderstorm, even during the day (it says “This can only be done at night.”, which is incorrect; it should say “This can only be done at night or during a thunderstorm.”). The beds page in the regular How to Play section already mentions this.
You can’t sleep with hostile mobs nearby, unless in creative mode (which isn’t mentioned at all).
You shouldn’t use them in the End either (they explode; the Nether is already mentioned).
Comments 2
This issue has been reviewed by our team.
Please add new, relevant information if it helps us understand or reproduce the issue. To show that you’re affected, use the vote feature rather than commenting.
If a fix is implemented, it will be listed in our official changelogs.
For major outages or urgent assistance, visit the Minecraft Help Center.
I can reproduce, and in my opinion, the 1° and the 3° are acceptable as bugs, the 2° may be may be feature request (but it is plausible)