mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			218 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			218 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// build-pass
 | 
						|
// compile-flags: -Zmir-opt-level=3 --crate-type=lib
 | 
						|
 | 
						|
#![feature(trivial_bounds)]
 | 
						|
#![allow(trivial_bounds)]
 | 
						|
 | 
						|
trait Foo {
 | 
						|
    fn test(self);
 | 
						|
}
 | 
						|
fn baz<T>()
 | 
						|
where
 | 
						|
    &'static str: Foo,
 | 
						|
{
 | 
						|
    "Foo".test()
 | 
						|
}
 |