mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	 5d17987d71
			
		
	
	
		5d17987d71
		
			
		
	
	
	
	
		
			
			This test case is a reduction from the `hwc` crate on GitHub, following a crater run. It passes with the next solver but fails on the current solver due to a known limitation of the current solver. It starts fails on the current solver with the `sized_hierarchy` changes because `?Sized` is now a proper bound.
		
			
				
	
	
		
			22 lines
		
	
	
		
			527 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			527 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ compile-flags: --crate-type=lib
 | |
| //@ revisions: current next
 | |
| //@ ignore-compare-mode-next-solver (explicit revisions)
 | |
| //@[next] check-pass
 | |
| //@[next] compile-flags: -Znext-solver
 | |
| 
 | |
| use std::marker::PhantomData;
 | |
| 
 | |
| trait ParseTokens {
 | |
|     type Output;
 | |
| }
 | |
| impl<T: ParseTokens + ?Sized> ParseTokens for Box<T> {
 | |
|     type Output = ();
 | |
| }
 | |
| 
 | |
| struct Element(<Box<Box<Element>> as ParseTokens>::Output);
 | |
| //[current]~^ ERROR overflow evaluating
 | |
| impl ParseTokens for Element {
 | |
| //[current]~^ ERROR overflow evaluating
 | |
|     type Output = ();
 | |
| }
 |