diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-18118.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-18118.rs b/src/test/ui/issues/issue-18118.rs new file mode 100644 index 000000000..f58a3de28 --- /dev/null +++ b/src/test/ui/issues/issue-18118.rs @@ -0,0 +1,6 @@ +pub fn main() { + const z: &'static isize = { + let p = 3; + &p //~ ERROR `p` does not live long enough + }; +} |