File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ fn main() {
577577    let p = Packed { a: 1, b: 2 }; 
578578    // Some assumption about the size of the type. 
579579    // Without `packed`, this fails since the size is 4. 
580-     const _: () = assert!(std::mem::size_of::<Packed>() == 3); // Error: evaluation of constant value  failed 
580+     const _: () = assert!(std::mem::size_of::<Packed>() == 3); // Error: assertion  failed 
581581} 
582582``` 
583583
@@ -696,7 +696,7 @@ fn main() {
696696    let p = Packed { a: 1, b: 2 }; 
697697    // Some assumption about the size of the type. 
698698    // The alignment has changed from 8 to 4. 
699-     const _: () = assert!(std::mem::align_of::<Packed>() == 8); // Error: evaluation of constant value  failed 
699+     const _: () = assert!(std::mem::align_of::<Packed>() == 8); // Error: assertion  failed 
700700} 
701701``` 
702702
@@ -734,7 +734,7 @@ fn main() {
734734    let p = Packed { a: 1, b: 2 }; 
735735    // Some assumption about the size of the type. 
736736    // The alignment has changed from 8 to 4. 
737-     const _: () = assert!(std::mem::align_of::<Packed>() == 8); // Error: evaluation of constant value  failed 
737+     const _: () = assert!(std::mem::align_of::<Packed>() == 8); // Error: assertion  failed 
738738} 
739739``` 
740740
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments