mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			336 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			336 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
#![expect(incomplete_features)]
 | 
						|
#![feature(explicit_tail_calls)]
 | 
						|
 | 
						|
#[track_caller]
 | 
						|
fn a() {
 | 
						|
    become b(); //~ error: a function marked with `#[track_caller]` cannot perform a tail-call
 | 
						|
}
 | 
						|
 | 
						|
fn b() {}
 | 
						|
 | 
						|
#[track_caller]
 | 
						|
fn c() {
 | 
						|
    become a(); //~ error: a function marked with `#[track_caller]` cannot perform a tail-call
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |