diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/consts/promote_fn_calls_std.rs | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/consts/promote_fn_calls_std.rs')
-rw-r--r-- | src/test/ui/consts/promote_fn_calls_std.rs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/test/ui/consts/promote_fn_calls_std.rs b/src/test/ui/consts/promote_fn_calls_std.rs deleted file mode 100644 index 557f6a434..000000000 --- a/src/test/ui/consts/promote_fn_calls_std.rs +++ /dev/null @@ -1,29 +0,0 @@ -#![allow(deprecated, deprecated_in_future)] // can be removed if different fns are chosen -// build-pass (FIXME(62277): could be check-pass?) - -fn main() { - let x: &'static u8 = &u8::max_value(); - let x: &'static u16 = &u16::max_value(); - let x: &'static u32 = &u32::max_value(); - let x: &'static u64 = &u64::max_value(); - let x: &'static u128 = &u128::max_value(); - let x: &'static usize = &usize::max_value(); - let x: &'static u8 = &u8::min_value(); - let x: &'static u16 = &u16::min_value(); - let x: &'static u32 = &u32::min_value(); - let x: &'static u64 = &u64::min_value(); - let x: &'static u128 = &u128::min_value(); - let x: &'static usize = &usize::min_value(); - let x: &'static i8 = &i8::max_value(); - let x: &'static i16 = &i16::max_value(); - let x: &'static i32 = &i32::max_value(); - let x: &'static i64 = &i64::max_value(); - let x: &'static i128 = &i128::max_value(); - let x: &'static isize = &isize::max_value(); - let x: &'static i8 = &i8::min_value(); - let x: &'static i16 = &i16::min_value(); - let x: &'static i32 = &i32::min_value(); - let x: &'static i64 = &i64::min_value(); - let x: &'static i128 = &i128::min_value(); - let x: &'static isize = &isize::min_value(); -} |