diff options
| author | tiif <pekyuan@gmail.com> | 2025-09-15 09:01:22 +0000 |
|---|---|---|
| committer | tiif <pekyuan@gmail.com> | 2025-09-15 09:01:22 +0000 |
| commit | 0bd2ee3a0c260894eb92f5f0f5f8dd56182cda3f (patch) | |
| tree | 64f36788ab56aa8659b6ba6ff15e2a29aec8c98b /tests/ui/const-generics/slice-const-param.rs | |
| parent | 1a02cd531d6b5ff154078208daf7816b1657f389 (diff) | |
| download | rust-0bd2ee3a0c260894eb92f5f0f5f8dd56182cda3f.tar.gz rust-0bd2ee3a0c260894eb92f5f0f5f8dd56182cda3f.zip | |
Fix the testcases to not use UnsizedConstParamTy
Diffstat (limited to 'tests/ui/const-generics/slice-const-param.rs')
| -rw-r--r-- | tests/ui/const-generics/slice-const-param.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/const-generics/slice-const-param.rs b/tests/ui/const-generics/slice-const-param.rs index 1c5088b5283..8b5e934149e 100644 --- a/tests/ui/const-generics/slice-const-param.rs +++ b/tests/ui/const-generics/slice-const-param.rs @@ -12,7 +12,7 @@ pub fn function_with_bytes<const BYTES: &'static [u8]>() -> &'static [u8] { } // Also check the codepaths for custom DST -#[derive(std::marker::UnsizedConstParamTy, PartialEq, Eq)] +#[derive(std::marker::ConstParamTy, PartialEq, Eq)] struct MyStr(str); fn function_with_my_str<const S: &'static MyStr>() -> &'static MyStr { |
