diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/symbol-names/impl2.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/symbol-names/impl2.rs b/src/test/ui/symbol-names/impl2.rs new file mode 100644 index 000000000..08add29cb --- /dev/null +++ b/src/test/ui/symbol-names/impl2.rs @@ -0,0 +1,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() { +} |