mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			196 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			196 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![feature(specialization)]
 | |
| 
 | |
| #![crate_name = "foo"]
 | |
| 
 | |
| pub trait Item {
 | |
|     fn foo();
 | |
|     fn bar();
 | |
|     fn baz() {}
 | |
| }
 | |
| 
 | |
| pub struct Foo;
 | |
| 
 | |
| impl Item for Foo {
 | |
|     default fn foo() {}
 | |
|     fn bar() {}
 | |
| }
 | 
