mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			203 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			203 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ run-pass
 | 
						|
 | 
						|
#![allow(warnings)]
 | 
						|
 | 
						|
// This works for functions...
 | 
						|
fn foo<'a>(x: &str, y: &'a str) {}
 | 
						|
 | 
						|
// ...so this should work for impls
 | 
						|
impl<'a> Foo<&str> for &'a str {}
 | 
						|
trait Foo<T> {}
 | 
						|
 | 
						|
fn main() {
 | 
						|
}
 |