mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +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;
   |
```
		
	
			
		
			
				
	
	
		
			99 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			99 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| error: unexpected token `||` in pattern
 | |
|   --> $DIR/multiple-pattern-typo.rs:7:15
 | |
|    |
 | |
| LL |         1 | 2 || 3 => (),
 | |
|    |         -     ^^
 | |
|    |         |
 | |
|    |         while parsing this or-pattern starting here
 | |
|    |
 | |
| help: use a single `|` to separate multiple alternative patterns
 | |
|    |
 | |
| LL -         1 | 2 || 3 => (),
 | |
| LL +         1 | 2 | 3 => (),
 | |
|    |
 | |
| 
 | |
| error: unexpected token `||` in pattern
 | |
|   --> $DIR/multiple-pattern-typo.rs:12:16
 | |
|    |
 | |
| LL |         (1 | 2 || 3) => (),
 | |
|    |          -     ^^
 | |
|    |          |
 | |
|    |          while parsing this or-pattern starting here
 | |
|    |
 | |
| help: use a single `|` to separate multiple alternative patterns
 | |
|    |
 | |
| LL -         (1 | 2 || 3) => (),
 | |
| LL +         (1 | 2 | 3) => (),
 | |
|    |
 | |
| 
 | |
| error: unexpected token `||` in pattern
 | |
|   --> $DIR/multiple-pattern-typo.rs:17:16
 | |
|    |
 | |
| LL |         (1 | 2 || 3,) => (),
 | |
|    |          -     ^^
 | |
|    |          |
 | |
|    |          while parsing this or-pattern starting here
 | |
|    |
 | |
| help: use a single `|` to separate multiple alternative patterns
 | |
|    |
 | |
| LL -         (1 | 2 || 3,) => (),
 | |
| LL +         (1 | 2 | 3,) => (),
 | |
|    |
 | |
| 
 | |
| error: unexpected token `||` in pattern
 | |
|   --> $DIR/multiple-pattern-typo.rs:24:18
 | |
|    |
 | |
| LL |         TS(1 | 2 || 3) => (),
 | |
|    |            -     ^^
 | |
|    |            |
 | |
|    |            while parsing this or-pattern starting here
 | |
|    |
 | |
| help: use a single `|` to separate multiple alternative patterns
 | |
|    |
 | |
| LL -         TS(1 | 2 || 3) => (),
 | |
| LL +         TS(1 | 2 | 3) => (),
 | |
|    |
 | |
| 
 | |
| error: unexpected token `||` in pattern
 | |
|   --> $DIR/multiple-pattern-typo.rs:31:23
 | |
|    |
 | |
| LL |         NS { f: 1 | 2 || 3 } => (),
 | |
|    |                 -     ^^
 | |
|    |                 |
 | |
|    |                 while parsing this or-pattern starting here
 | |
|    |
 | |
| help: use a single `|` to separate multiple alternative patterns
 | |
|    |
 | |
| LL -         NS { f: 1 | 2 || 3 } => (),
 | |
| LL +         NS { f: 1 | 2 | 3 } => (),
 | |
|    |
 | |
| 
 | |
| error: unexpected token `||` in pattern
 | |
|   --> $DIR/multiple-pattern-typo.rs:36:16
 | |
|    |
 | |
| LL |         [1 | 2 || 3] => (),
 | |
|    |          -     ^^
 | |
|    |          |
 | |
|    |          while parsing this or-pattern starting here
 | |
|    |
 | |
| help: use a single `|` to separate multiple alternative patterns
 | |
|    |
 | |
| LL -         [1 | 2 || 3] => (),
 | |
| LL +         [1 | 2 | 3] => (),
 | |
|    |
 | |
| 
 | |
| error: unexpected token `||` in pattern
 | |
|   --> $DIR/multiple-pattern-typo.rs:41:9
 | |
|    |
 | |
| LL |         || 1 | 2 | 3 => (),
 | |
|    |         ^^
 | |
|    |
 | |
| help: use a single `|` to separate multiple alternative patterns
 | |
|    |
 | |
| LL -         || 1 | 2 | 3 => (),
 | |
| LL +         | 1 | 2 | 3 => (),
 | |
|    |
 | |
| 
 | |
| error: aborting due to 7 previous errors
 | |
| 
 |