Skip to content

Commit dd32795

Browse files
committed
Update ui tests
1 parent 825cfdb commit dd32795

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

src/test/ui/pattern/const-pat-ice.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
thread 'rustc' panicked at 'assertion failed: rows.iter().all(|r| r.len() == v.len())', src/librustc_mir/hair/pattern/_match.rs:1083:5
1+
thread 'rustc' panicked at 'assertion failed: rows.iter().all(|r| r.len() == v.len())', src/librustc_mir/hair/pattern/_match.rs:1085:5
22
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
33

44
error: internal compiler error: unexpected panic

src/test/ui/symbol-names/impl2.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#![feature(rustc_attrs)]
2+
#![allow(dead_code)]
3+
4+
trait Foo {
5+
fn baz();
6+
}
7+
8+
impl Foo for [u8; 1 + 2] {
9+
#[rustc_def_path] //~ ERROR def-path(<[u8; _] as Foo>::baz)
10+
fn baz() { }
11+
}
12+
13+
fn main() {
14+
}

src/test/ui/symbol-names/impl2.stderr

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

0 commit comments

Comments
 (0)