mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
Update ui tests
This commit is contained in:
parent
825cfdbadc
commit
dd327951eb
@ -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
|
||||
|
14
src/test/ui/symbol-names/impl2.rs
Normal file
14
src/test/ui/symbol-names/impl2.rs
Normal 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() {
|
||||
}
|
8
src/test/ui/symbol-names/impl2.stderr
Normal file
8
src/test/ui/symbol-names/impl2.stderr
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user