diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2024-11-19 05:01:59 +0000 |
|---|---|---|
| committer | Boxy <rust@boxyuwu.dev> | 2024-11-19 05:07:43 +0000 |
| commit | 59e339f76658bd8bd55f7514c95ffb5f39c94227 (patch) | |
| tree | 9b5242c424017271592c6d53cb4557cff5502375 /tests/ui/const-generics/using-static-as-const-arg.rs | |
| parent | b71fb5edc0217eaf8fc824a44cd7b0945e29ff4d (diff) | |
| download | rust-59e339f76658bd8bd55f7514c95ffb5f39c94227.tar.gz rust-59e339f76658bd8bd55f7514c95ffb5f39c94227.zip | |
Introduce `min_generic_const_args` and directly represent paths
Co-authored-by: Boxy UwU <rust@boxyuwu.dev> Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
Diffstat (limited to 'tests/ui/const-generics/using-static-as-const-arg.rs')
| -rw-r--r-- | tests/ui/const-generics/using-static-as-const-arg.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/const-generics/using-static-as-const-arg.rs b/tests/ui/const-generics/using-static-as-const-arg.rs new file mode 100644 index 00000000000..2e8a2a14484 --- /dev/null +++ b/tests/ui/const-generics/using-static-as-const-arg.rs @@ -0,0 +1,7 @@ +//@ check-pass + +pub static STATIC: u32 = 0; +pub struct Foo<const N: u32>; +pub const FOO: Foo<{STATIC}> = Foo; + +fn main() {} |
