diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-12-28 20:15:16 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-12-29 23:39:56 +0300 |
| commit | 4d2d0bad4e51d0d14d21b4e21cdb61b55dd11349 (patch) | |
| tree | 9803bb601004e2fcb03d00009320067e439535d4 /src/test/compile-fail/consts | |
| parent | 158f8d034b15e65ba8dc0d066358dd0632bfcd6e (diff) | |
| download | rust-4d2d0bad4e51d0d14d21b4e21cdb61b55dd11349.tar.gz rust-4d2d0bad4e51d0d14d21b4e21cdb61b55dd11349.zip | |
Remove `compile-fail` test suite
Diffstat (limited to 'src/test/compile-fail/consts')
| -rw-r--r-- | src/test/compile-fail/consts/const-fn-error.rs | 21 | ||||
| -rw-r--r-- | src/test/compile-fail/consts/issue-55878.rs | 7 |
2 files changed, 0 insertions, 28 deletions
diff --git a/src/test/compile-fail/consts/const-fn-error.rs b/src/test/compile-fail/consts/const-fn-error.rs deleted file mode 100644 index 68a4d414ff3..00000000000 --- a/src/test/compile-fail/consts/const-fn-error.rs +++ /dev/null @@ -1,21 +0,0 @@ -#![feature(const_fn)] - -const X : usize = 2; - -const fn f(x: usize) -> usize { - let mut sum = 0; - for i in 0..x { - //~^ ERROR mutable references - //~| ERROR calls in constant functions - //~| ERROR calls in constant functions - //~| ERROR E0080 - //~| ERROR E0744 - sum += i; - } - sum -} - -#[allow(unused_variables)] -fn main() { - let a : [i32; f(X)]; -} diff --git a/src/test/compile-fail/consts/issue-55878.rs b/src/test/compile-fail/consts/issue-55878.rs deleted file mode 100644 index fee664caa17..00000000000 --- a/src/test/compile-fail/consts/issue-55878.rs +++ /dev/null @@ -1,7 +0,0 @@ -// normalize-stderr-64bit "18446744073709551615" -> "SIZE" -// normalize-stderr-32bit "4294967295" -> "SIZE" - -// error-pattern: are too big for the current architecture -fn main() { - println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>()); -} |
