rust/src/test/compile-fail
bors b2cc47ff94 Auto merge of #28841 - jld:const-slice-ice, r=Aatch
This turned up as part of #3170.  When constructing an `undef` value to
return in the error case, we were trying to get the element type of the
Rust-level value being indexed instead of the underlying array; when
indexing a slice, that's not an array and the LLVM assertion failure
reflects this.

The regression test is a lightly altered copy of `const-array-oob.rs`.
2015-10-07 01:59:31 +00:00
..
2015-10-03 00:01:49 +09:00
2015-10-03 00:01:49 +09:00
2015-09-17 12:16:46 +12:00
2015-09-17 12:16:46 +12:00
2015-09-17 12:16:46 +12:00
2015-08-03 17:23:01 -07:00
2015-09-17 12:16:46 +12:00
2015-09-17 12:16:46 +12:00
2015-09-17 12:16:46 +12:00
2015-09-18 15:28:01 +03:00
2015-09-18 15:28:01 +03:00
2015-09-18 15:28:01 +03:00
2015-09-17 12:16:46 +12:00
2015-09-03 03:50:46 +03:00
2015-09-03 03:50:46 +03:00
2015-09-17 12:16:46 +12:00
2015-09-10 16:05:30 -04:00
2015-10-02 23:40:10 +03:00
2015-08-03 17:23:01 -07:00
2015-09-17 09:33:41 -04:00
2015-09-17 09:33:41 -04:00
2015-09-17 12:16:46 +12:00
2015-08-05 22:07:09 +02:00
2015-09-17 12:16:46 +12:00
2015-09-17 12:16:46 +12:00
2015-08-03 17:23:01 -07:00
2015-08-03 17:23:01 -07:00
2015-09-11 11:53:45 -07:00
2015-10-02 23:40:10 +03:00
2015-08-03 17:23:01 -07:00
2015-08-03 17:23:01 -07:00
2015-08-03 17:23:01 -07:00
2015-08-03 17:23:01 -07:00
2015-09-22 09:06:43 +01:00
2015-10-02 23:40:10 +03:00
2015-08-15 13:29:12 -07:00
2015-09-17 12:16:46 +12:00
2015-09-17 12:16:46 +12:00
2015-08-10 16:35:44 -07:00