2019-12-13 21:28:32 -06:00
|
|
|
// build-fail
|
|
|
|
|
2019-05-11 08:48:57 -05:00
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
fn baz();
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo for [u8; 1 + 2] {
|
2023-01-14 12:32:17 -06:00
|
|
|
#[rustc_def_path] //~ ERROR def-path(<[u8; 1 + 2] as Foo>::baz)
|
|
|
|
fn baz() {}
|
2019-05-11 08:48:57 -05:00
|
|
|
}
|
|
|
|
|
2023-01-14 12:32:17 -06:00
|
|
|
fn main() {}
|