mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	 da47753496
			
		
	
	
		da47753496
		
			
		
	
	
	
	
		
			
			Some rustdoc tests are `no_core` and need to have `MetaSized` and `PointeeSized` added to them.
		
			
				
	
	
		
			26 lines
		
	
	
		
			480 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			480 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // This test ensures that warnings are working as expected for "custom_code_classes_in_docs"
 | |
| // feature.
 | |
| 
 | |
| #![deny(warnings)]
 | |
| #![feature(no_core, lang_items)]
 | |
| #![no_core]
 | |
| 
 | |
| #[lang = "pointee_sized"]
 | |
| pub trait PointeeSized {}
 | |
| 
 | |
| #[lang = "meta_sized"]
 | |
| pub trait MetaSized: PointeeSized {}
 | |
| 
 | |
| #[lang = "sized"]
 | |
| pub trait Sized: MetaSized {}
 | |
| 
 | |
| /// ```{class="}
 | |
| /// main;
 | |
| /// ```
 | |
| //~^^^ ERROR unclosed quote string
 | |
| //~| ERROR unclosed quote string
 | |
| /// ```"
 | |
| /// main;
 | |
| /// ```
 | |
| pub fn foo() {}
 |