diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-24 18:29:09 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-25 15:34:28 +0500 |
| commit | 90bb5cacb5c1a5fe20ba821d28e7eb7a21e35d09 (patch) | |
| tree | fa18c4e8fc12592084b8d16f71a8838e44a116ac /tests/ui/structs/static-struct-init-15043.rs | |
| parent | 3c30dbbe31bfbf6029f4534170165ba573ff0fd1 (diff) | |
| download | rust-90bb5cacb5c1a5fe20ba821d28e7eb7a21e35d09.tar.gz rust-90bb5cacb5c1a5fe20ba821d28e7eb7a21e35d09.zip | |
moved 34 tests to organized locations
Diffstat (limited to 'tests/ui/structs/static-struct-init-15043.rs')
| -rw-r--r-- | tests/ui/structs/static-struct-init-15043.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/structs/static-struct-init-15043.rs b/tests/ui/structs/static-struct-init-15043.rs new file mode 100644 index 00000000000..a9bb46b649b --- /dev/null +++ b/tests/ui/structs/static-struct-init-15043.rs @@ -0,0 +1,13 @@ +//@ run-pass + +#![allow(warnings)] + +struct S<T>(T); + +static s1: S<S<usize>>=S(S(0)); +static s2: S<usize>=S(0); + +fn main() { + let foo: S<S<usize>>=S(S(0)); + let foo: S<usize>=S(0); +} |
