mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			219 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			219 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ build-fail
 | 
						|
 | 
						|
#![feature(rustc_attrs)]
 | 
						|
#![allow(dead_code)]
 | 
						|
 | 
						|
trait Foo {
 | 
						|
    fn baz();
 | 
						|
}
 | 
						|
 | 
						|
impl Foo for [u8; 1 + 2] {
 | 
						|
    #[rustc_def_path] //~ ERROR def-path(<[u8; 1 + 2] as Foo>::baz)
 | 
						|
    fn baz() {}
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |