mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			275 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			275 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ proc-macro: attributes-included.rs
 | 
						|
//@ check-pass
 | 
						|
 | 
						|
#![warn(unused)]
 | 
						|
 | 
						|
extern crate attributes_included;
 | 
						|
 | 
						|
use attributes_included::*;
 | 
						|
 | 
						|
#[bar]
 | 
						|
#[inline]
 | 
						|
/// doc
 | 
						|
#[foo]
 | 
						|
#[inline]
 | 
						|
/// doc
 | 
						|
fn foo() {
 | 
						|
    let a: i32 = "foo"; //~ WARN: unused variable
 | 
						|
}
 | 
						|
 | 
						|
fn main() {
 | 
						|
    foo()
 | 
						|
}
 |