Skip to content

Commit

Permalink
Update ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed May 25, 2019
1 parent 825cfdb commit dd32795
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/ui/pattern/const-pat-ice.stderr
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 14 additions & 0 deletions src/test/ui/symbol-names/impl2.rs
Original file line number Diff line number Diff line change
@@ -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() {
}
8 changes: 8 additions & 0 deletions src/test/ui/symbol-names/impl2.stderr
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dd32795

Please sign in to comment.