Our results suggest that tumor-infiltrating NKG2A+ CD8+ T cells are a dysfunctional subset of tumor-associated TRM cells in human lung cancer. Here, CD8A is linked to lung cancer.