diff options
| author | Caio <c410.f3r@gmail.com> | 2021-09-15 14:03:27 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2021-09-15 14:03:27 -0300 |
| commit | 1b0186e9ecdaa6fd00f1beea7d877b5a4fbd762d (patch) | |
| tree | b7ee76eff04de2e2b50d74c71a7c87bc0c6f4f36 /src/test/ui/static | |
| parent | 8c2b6ea37d7719a0370bd404030eef9702c1752c (diff) | |
| download | rust-1b0186e9ecdaa6fd00f1beea7d877b5a4fbd762d.tar.gz rust-1b0186e9ecdaa6fd00f1beea7d877b5a4fbd762d.zip | |
Move some tests to more reasonable directories
Diffstat (limited to 'src/test/ui/static')
| -rw-r--r-- | src/test/ui/static/issue-34194.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/static/issue-34194.rs b/src/test/ui/static/issue-34194.rs new file mode 100644 index 00000000000..6dce556e9e3 --- /dev/null +++ b/src/test/ui/static/issue-34194.rs @@ -0,0 +1,11 @@ +// build-pass +#![allow(dead_code)] + +struct A { + a: &'static (), +} + +static B: &'static A = &A { a: &() }; +static C: &'static A = &B; + +fn main() {} |
