mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			454 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			454 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #[issue_100199::struct_with_bound] //~ ERROR cannot find trait `MyTrait` in the crate root
 | |
| struct Foo {}
 | |
| // The above must be on the first line so that it's span points to pos 0.
 | |
| // This used to trigger an ICE because the diagnostic emitter would get
 | |
| // an unexpected dummy span (lo == 0 == hi) while attempting to print a
 | |
| // suggestion.
 | |
| 
 | |
| //@ proc-macro: issue-100199.rs
 | |
| 
 | |
| extern crate issue_100199;
 | |
| 
 | |
| mod traits {
 | |
|     pub trait MyTrait {}
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
