mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			404 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			404 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ aux-build:const_evaluatable_lib.rs
 | |
| #![feature(generic_const_exprs)]
 | |
| #![allow(incomplete_features)]
 | |
| extern crate const_evaluatable_lib;
 | |
| 
 | |
| fn user<T>() {
 | |
|     let _ = const_evaluatable_lib::test1::<T>();
 | |
|     //~^ ERROR unconstrained generic constant
 | |
|     //~| ERROR unconstrained generic constant
 | |
|     //~| ERROR unconstrained generic constant
 | |
|     //~| ERROR unconstrained generic constant
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
