You can put any enchantment on anything, including all the normally non-enchantable items. It seems to have no actual affect. All of the normally incompatible enchantments are still incompatible with each other though. The /enchant command and the enchantment table does not work with this glitch, but the anvil can do this glitch (I thought it only worked for armor when I took the first 4 pictures)
Linked issues
Attachments
Comments

Thank you for your report!
We're tracking this issue in MC-95555, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki