mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			595 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			595 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| error[E0573]: expected type, found variant `Alpha::One`
 | |
|   --> $DIR/offset-of-enum.rs:11:16
 | |
|    |
 | |
| LL |     offset_of!(Alpha::One, 0);
 | |
|    |                ^^^^^^^^^^
 | |
|    |                |
 | |
|    |                not a type
 | |
|    |                help: try using the variant's enum: `Alpha`
 | |
| 
 | |
| error[E0609]: no field `Two` on type `Alpha`
 | |
|   --> $DIR/offset-of-enum.rs:12:23
 | |
|    |
 | |
| LL |     offset_of!(Alpha, Two.0);
 | |
|    |                       ^^^
 | |
| 
 | |
| error: aborting due to 2 previous errors
 | |
| 
 | |
| Some errors have detailed explanations: E0573, E0609.
 | |
| For more information about an error, try `rustc --explain E0573`.
 | 
