summaryrefslogtreecommitdiffstats
path: root/tests/ui/symbol-names/impl2.rs
blob: 81aba403d0ba2cecb2bcf17238c207d46bdfd003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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() {}