]> git.lizzy.rs Git - rust.git/blob - src/test/ui/symbol-names/impl2.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / symbol-names / impl2.rs
1 // build-fail
2
3 #![feature(rustc_attrs)]
4 #![allow(dead_code)]
5
6 trait Foo {
7     fn baz();
8 }
9
10 impl Foo for [u8; 1 + 2] {
11     #[rustc_def_path] //~ ERROR def-path(<[u8; _] as Foo>::baz)
12     fn baz() { }
13 }
14
15 fn main() {
16 }