mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			219 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			219 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// pp-exact
 | 
						|
 | 
						|
 | 
						|
trait Tr {
 | 
						|
    fn dummy(&self) {}
 | 
						|
}
 | 
						|
impl Tr for isize {}
 | 
						|
 | 
						|
fn foo<'a>(x: Box<Tr + Sync + 'a>) -> Box<Tr + Sync + 'a> { x }
 | 
						|
 | 
						|
fn main() {
 | 
						|
    let x: Box<Tr + Sync>;
 | 
						|
 | 
						|
    Box::new(1isize) as Box<Tr + Sync>;
 | 
						|
}
 |