A rifle will, with proper shooting and care will virtually NEVER wear out!
That usually depends on how many rounds fired before one notices accuracy dropping off to unacceptable levels. But the actions last for several barrels.
Competitive shooters sometimes wear out a barrel every year after 500 to 3000 centerfire rounds (depending on cartridge) are through it. Some of them have put 40 to 50 barrels in their Win. 70's and the action's still working like new,
Even people on the Olympic Team rebarrel their .22 rimfires after about 30,000 to 35,000 rounds and that happens every 3 or 4 years for them. And these shooters take the best care of their rifle's bores.
USA military rifles such as the M1 and M14 wore out their service barrels at around 10,000 rounds.