mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			165 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			165 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ edition:2021
 | 
						|
 | 
						|
 | 
						|
trait Foo {
 | 
						|
    async fn foo(&self);
 | 
						|
}
 | 
						|
 | 
						|
fn main() {
 | 
						|
    let x: &dyn Foo = todo!();
 | 
						|
    //~^ ERROR the trait `Foo` cannot be made into an object
 | 
						|
}
 |