Unless you are detained, physically locked into handcuffs, you can tell any cop to eat your ass instead of emptying your pockets. They have no legal authority to ask this shit unless they arrest you under reasonable suspicions.
This is a great way to get detained, physically locked into handcuffs and not being able anymore to tell any cop to eat your ass.
Not in Canada, depending on how white and employed you look.