Prosecutors and the defense rested Tuesday in the trial of a Billings man accused of pulling out a loaded gun in a crowded downtown bar last year.