What happens to a file's public link when I move the file to the trash?
It stops at once. The public link of a trashed file answers "not found", exactly like a link that never existed. This holds whether the file was public by itself or through a public folder.