mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	 f0845adb0c
			
		
	
	
		f0845adb0c
		
	
	
	
	
		
			
			```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --> $DIR/attempted-access-non-fatal.rs:7:15
   |
LL |     let _ = 2.l;
   |               ^
   |
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
   |
LL -     let _ = 2.l;
LL +     let _ = 2.0f64;
   |
```
		
	
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			419 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			419 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| error: unexpected token: `...`
 | |
|   --> $DIR/dotdotdot-expr.rs:2:24
 | |
|    |
 | |
| LL |     let _redemptive = 1...21;
 | |
|    |                        ^^^
 | |
|    |
 | |
| help: use `..` for an exclusive range
 | |
|    |
 | |
| LL -     let _redemptive = 1...21;
 | |
| LL +     let _redemptive = 1..21;
 | |
|    |
 | |
| help: or `..=` for an inclusive range
 | |
|    |
 | |
| LL -     let _redemptive = 1...21;
 | |
| LL +     let _redemptive = 1..=21;
 | |
|    |
 | |
| 
 | |
| error: aborting due to 1 previous error
 | |
| 
 |