File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -432,11 +432,11 @@ The patterns programmed into Rust’s analysis of references are called the
432432a set of particular cases that the compiler will consider, and if your code
433433fits these cases, you don’t need to write the lifetimes explicitly.
434434
435- The elision rules don’t provide full inference. If Rust deterministically 
436- applies the rules but there is still ambiguity as to what lifetimes  the
437- references have, the  compiler won’t guess what the lifetime of the remaining
438- references should be.  Instead of guessing, the compiler will give you an error
439- that you can resolve  by adding the lifetime annotations.
435+ The elision rules don’t provide full inference. If there is still ambiguity as 
436+ to what lifetimes the references have after Rust applies the rules,  the
437+ compiler won’t guess what the lifetime of the remaining references should be. 
438+ Instead of guessing, the compiler will give you an error that you can resolve 
439+ by adding the lifetime annotations.
440440
441441Lifetimes on function or method parameters are called * input lifetimes* , and
442442lifetimes on return values are called * output lifetimes* .
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments