mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	 59e339f766
			
		
	
	
		59e339f766
		
	
	
	
	
		
			
			Co-authored-by: Boxy UwU <rust@boxyuwu.dev> Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
		
			
				
	
	
		
			16 lines
		
	
	
		
			225 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			225 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ check-pass
 | |
| //@ aux-build:xcrate-const-ctor-a.rs
 | |
| 
 | |
| #![feature(adt_const_params)]
 | |
| 
 | |
| extern crate xcrate_const_ctor_a;
 | |
| use xcrate_const_ctor_a::Foo;
 | |
| 
 | |
| fn bar<const N: Foo>() {}
 | |
| 
 | |
| fn baz() {
 | |
|     bar::<{ Foo }>();
 | |
| }
 | |
| 
 | |
| fn main() {}
 |