Disposing of properly bagged pet waste in "someone else's" trash can?

I'm sure everyone has opinions on this, but I am looking for any specific ordinance or court rulings. If someone has put "their" rollout can (that says it's Property of the City Of Charlotte) on a public street in order for the trash to be collected by the city, is it legal to put a piece of trash in that can, even if it's not "your" can? If the can is owned by the city, and is on public property, it would SEEM to be ok to put a piece of trash in a "public" trash can. Is it good etiquette to put dog waste in someone's empty can after the trash has been collected? Perhaps not. But is it legal? All I can find is "check your own local ordinances" but I can't find anything specific for Charlotte or Mecklenburg County.

I found a Supreme Court ruling from 1988 ([California v. Greenwood, 486 U.S. 35) that says police do not need a warrant to search someone's trash can that has been placed on a publicly accessible property for the purposes of being collected by the city. And I thought I saw years ago that a judge ruled that putting a piece of trash in a trash can on public property was "reasonable" but I didn't know if anyone knew of any specific laws or ordinances in Charlotte / Meck Co specifically that stated whether this scenario is legal or illegal. Thanks in advance!