Move tests from test/run-fail to UI

This commit is contained in:
Yuki Okushi 2020-04-16 15:50:32 +09:00
parent 43271a39ad
commit e69748ba4f
No known key found for this signature in database
GPG key ID: B0986C85C0E2DAA1
160 changed files with 404 additions and 125 deletions

View file

@ -0,0 +1,10 @@
// run-fail
// error-pattern:index out of bounds
use std::usize;
use std::mem::size_of;
fn main() {
let xs = [1, 2, 3];
xs[usize::MAX / size_of::<isize>() + 1];
}