Hmmm. Interesting. Learn something new every day. In this case that cops ask to open the trunk.
I think I'll ask for the ticket, then suggest they just put the gun back on the front seat from which they seized. "Sorry, officer. I have a heightened expectation of privacy in the trunk of my car, and I do not consent to a plain-view search of my trunk."