Pattern guards that can define the lifetime of a pattern