mirror of
				https://git.proxmox.com/git/rustc
				synced 2025-11-04 04:52:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			228 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			228 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
#![feature(dyn_star)]
 | 
						|
#![allow(incomplete_features)]
 | 
						|
 | 
						|
use std::fmt::Debug;
 | 
						|
 | 
						|
trait Foo {}
 | 
						|
 | 
						|
fn make_dyn_star() {
 | 
						|
    let i = 42;
 | 
						|
    let dyn_i: dyn* Foo = i; //~ ERROR trait bound `{integer}: Foo` is not satisfied
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |