It's illegal to drink on the streets in Amsterdam. You will be forced by police to empty your can onto the ground, and you will receive a fine too.