Fribourg in detail
Swiss police have wide-ranging powers of detention, allowing them to hold a person without charge. If you're approached by them, you will be required to show your passport, so always carry it.
There are some minor legal variations between the 26 cantons: busking (playing music in the streets) is allowed in some places but not in others. If in doubt, ask.