mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
17 lines
216 B
Rust
17 lines
216 B
Rust
// 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() {
|
|
}
|