forked from libre-chip/fayalite
		
	WIP: use HdlOption[the_type_var] or UInt[123 + n] for creating types
This commit is contained in:
		
							parent
							
								
									cd99dbc849
								
							
						
					
					
						commit
						5835b995a9
					
				
					 63 changed files with 13500 additions and 13210 deletions
				
			
		|  | @ -1,8 +1,8 @@ | |||
| // SPDX-License-Identifier: LGPL-3.0-or-later
 | ||||
| // See Notices.txt for copyright information
 | ||||
| use fayalite::ty::Value; | ||||
| use fayalite::hdl; | ||||
| 
 | ||||
| #[derive(Value)] | ||||
| #[hdl] | ||||
| union U { | ||||
|     a: (), | ||||
| } | ||||
							
								
								
									
										7
									
								
								crates/fayalite/tests/ui/hdl_types.stderr
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								crates/fayalite/tests/ui/hdl_types.stderr
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| error: top-level #[hdl] can only be used on structs or enums | ||||
|  --> tests/ui/hdl_types.rs:5:1 | ||||
|   | | ||||
| 5 | #[hdl] | ||||
|   | ^^^^^^ | ||||
|   | | ||||
|   = note: this error originates in the attribute macro `hdl` (in Nightly builds, run with -Z macro-backtrace for more info) | ||||
|  | @ -1,7 +0,0 @@ | |||
| error: derive(Value) can only be used on structs or enums | ||||
|  --> tests/ui/value_derive.rs:5:10 | ||||
|   | | ||||
| 5 | #[derive(Value)] | ||||
|   |          ^^^^^ | ||||
|   | | ||||
|   = note: this error originates in the derive macro `Value` (in Nightly builds, run with -Z macro-backtrace for more info) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue