File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- pub  const  fn  test_match_range ( len :  usize )  -> usize  { 
1+ pub  const  fn  test_match_range ( len :  u64 )  -> u64  { 
22    match  len { 
3-         10000000000000000000 ..=99999999999999999999  => 0 ,  //~ ERROR literal out of range for `usize ` 
3+         10000000000000000000 ..=99999999999999999999  => 0 ,  //~ ERROR literal out of range for `u64 ` 
44        _ => unreachable ! ( ) , 
55    } 
66} 
Original file line number Diff line number Diff line change 1- error: literal out of range for `usize `
1+ error: literal out of range for `u64 `
22  --> $DIR/issue-94239.rs:3:32
33   |
44LL |         10000000000000000000..=99999999999999999999 => 0,
55   |                                ^^^^^^^^^^^^^^^^^^^^
66   |
77   = note: `#[deny(overflowing_literals)]` on by default
8-    = note: the literal `99999999999999999999` does not fit into the type `usize ` whose range is `0..=18446744073709551615`
8+    = note: the literal `99999999999999999999` does not fit into the type `u64 ` whose range is `0..=18446744073709551615`
99
1010error: aborting due to previous error
1111
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments