diff options
Diffstat (limited to 'tests/ui/consts/issue-54387.rs')
-rw-r--r-- | tests/ui/consts/issue-54387.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/consts/issue-54387.rs b/tests/ui/consts/issue-54387.rs new file mode 100644 index 000000000..60e3a02f4 --- /dev/null +++ b/tests/ui/consts/issue-54387.rs @@ -0,0 +1,12 @@ +// check-pass + +pub struct GstRc { + _obj: *const (), + _borrowed: bool, +} + +const FOO: Option<GstRc> = None; + +fn main() { + let _meh = FOO; +} |