diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-05-11 15:48:57 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-05-25 10:07:02 +0200 |
| commit | dd327951eb61b95e28649768ae7e67aaba4e2ece (patch) | |
| tree | 71d6c0b51b2399f84f70a1355d155e748737ee7c /src | |
| parent | 825cfdbadcbf7877ea7bf925664ef760c364980d (diff) | |
| download | rust-dd327951eb61b95e28649768ae7e67aaba4e2ece.tar.gz rust-dd327951eb61b95e28649768ae7e67aaba4e2ece.zip | |
Update ui tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/pattern/const-pat-ice.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/symbol-names/impl2.rs | 14 | ||||
| -rw-r--r-- | src/test/ui/symbol-names/impl2.stderr | 8 |
3 files changed, 23 insertions, 1 deletions
diff --git a/src/test/ui/pattern/const-pat-ice.stderr b/src/test/ui/pattern/const-pat-ice.stderr index 260c2e04d74..fabaea0535f 100644 --- a/src/test/ui/pattern/const-pat-ice.stderr +++ b/src/test/ui/pattern/const-pat-ice.stderr @@ -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 diff --git a/src/test/ui/symbol-names/impl2.rs b/src/test/ui/symbol-names/impl2.rs new file mode 100644 index 00000000000..d48b182f2a2 --- /dev/null +++ b/src/test/ui/symbol-names/impl2.rs @@ -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() { +} diff --git a/src/test/ui/symbol-names/impl2.stderr b/src/test/ui/symbol-names/impl2.stderr new file mode 100644 index 00000000000..de26fed4413 --- /dev/null +++ b/src/test/ui/symbol-names/impl2.stderr @@ -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 + |
