>>787999
>The Gemara raises an objection to Rabbi Yoḥanan’s statement from a baraita: Rabbi Meir would say: From where is it derived that even a gentile who engages in Torah study is considered like a High Priest? It is derived from that which is stated: “You shall therefore keep My statutes and My ordinances, which if a man does he shall live by them” (Leviticus 18:5). The phrase: Which if priests, Levites, and Israelites do they shall live by them, is not stated, but rather: “A man,” which indicates mankind in general. You have therefore learned that even a gentile who engages in Torah study is considered like a High Priest.
>The Gemara answers: There, in the baraita, the reference is to a gentile who engages in the study of their seven mitzvot. It is a mitzva for a gentile to study the halakhot that pertain to the seven Noahide mitzvot, and when he does so he is highly regarded.
The rabbi got counter objected and got told that Gentiles can only study stuff that got to do with Noahide Laws then after that they just went arguing what applies to both groups and what applies to Jews only.