Many jurisdictions make it illegal to dispose of pet trash on your own property due to the health risks involved with animal feces. These regulations are more flexible or obscure in some rural locations.
However, the loose laws don’t mean that dumping animal waste is fine. You are still endangering wildlife and people. Consult your local regulations to learn about the laws that apply to you. A simple Google search will suffice.