mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			423 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			423 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
warning: function cannot return without recursing
 | 
						|
  --> $DIR/issue-103599.rs:5:1
 | 
						|
   |
 | 
						|
LL | fn wrap(x: impl T) -> impl T {
 | 
						|
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
 | 
						|
LL |
 | 
						|
LL |     wrap(wrap(x))
 | 
						|
   |          ------- recursive call site
 | 
						|
   |
 | 
						|
   = help: a `loop` may express intention better if this is on purpose
 | 
						|
   = note: `#[warn(unconditional_recursion)]` on by default
 | 
						|
 | 
						|
warning: 1 warning emitted
 | 
						|
 |