Update ui tests

This commit is contained in:
Oliver Scherer 2019-05-11 15:48:57 +02:00
parent 825cfdbadc
commit dd327951eb
3 changed files with 23 additions and 1 deletions

View File

@ -1,4 +1,4 @@
thread 'rustc' panicked at 'assertion failed: rows.iter().all(|r| r.len() == v.len())', src/librustc_mir/hair/pattern/_match.rs:1083:5
thread 'rustc' panicked at 'assertion failed: rows.iter().all(|r| r.len() == v.len())', src/librustc_mir/hair/pattern/_match.rs:1085:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
error: internal compiler error: unexpected panic

View File

@ -0,0 +1,14 @@
#![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() {
}

View File

@ -0,0 +1,8 @@
error: def-path(<[u8; _] as Foo>::baz)
--> $DIR/impl2.rs:9:5
|
LL | #[rustc_def_path]
| ^^^^^^^^^^^^^^^^^
error: aborting due to previous error