blob: 08add29cb9cd521431521e535f764ff47fbd41d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// 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; _] as Foo>::baz)
fn baz() { }
}
fn main() {
}
|