mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			310 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			310 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// Regression test for issue #121424
 | 
						|
#[repr(C)]
 | 
						|
struct MySlice<T: Copy>(bool, T);
 | 
						|
type MySliceBool = MySlice<[bool]>;
 | 
						|
const MYSLICE_GOOD: &MySliceBool = &MySlice(true, [false]);
 | 
						|
//~^ ERROR the trait bound `[bool]: Copy` is not satisfied
 | 
						|
//~| ERROR the trait bound `[bool]: Copy` is not satisfied
 | 
						|
 | 
						|
fn main() {}
 |