mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			276 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			276 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ edition:2018
 | 
						|
 | 
						|
trait From {
 | 
						|
    fn from();
 | 
						|
}
 | 
						|
 | 
						|
impl From for () {
 | 
						|
    fn from() {}
 | 
						|
}
 | 
						|
 | 
						|
impl From for () {
 | 
						|
//~^ ERROR conflicting implementations of trait
 | 
						|
    fn from() {}
 | 
						|
}
 | 
						|
 | 
						|
fn bar() -> impl core::future::Future<Output = ()> {
 | 
						|
    async move { From::from() }
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |