rust/tests/ui/symbol-names/impl2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
218 B
Rust
Raw Normal View History

// build-fail
2019-05-11 13:48:57 +00:00
#![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() {}
2019-05-11 13:48:57 +00:00
}
fn main() {}