mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			333 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			333 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
#![feature(specialization)]
 | 
						|
//~^ WARN the feature `specialization` is incomplete
 | 
						|
 | 
						|
trait SpaceLlama {
 | 
						|
    fn fly(&self);
 | 
						|
}
 | 
						|
 | 
						|
impl<T> SpaceLlama for T {
 | 
						|
    default fn fly(&self) {}
 | 
						|
}
 | 
						|
 | 
						|
impl<T: Clone> SpaceLlama for T {
 | 
						|
    fn fly(&self) {}
 | 
						|
}
 | 
						|
 | 
						|
impl SpaceLlama for i32 {
 | 
						|
    default fn fly(&self) {}
 | 
						|
    //~^ ERROR E0520
 | 
						|
}
 | 
						|
 | 
						|
fn main() {
 | 
						|
}
 |