diff --git a/tests/source/type.rs b/tests/source/type.rs index 2df68490d5d80..b622d4363f53d 100644 --- a/tests/source/type.rs +++ b/tests/source/type.rs @@ -91,3 +91,25 @@ macro_rules! foo { } type Target = ( FooAPI ) + 'static; + +// #3117 +fn issue3117() { + { + { + { + { + { + { + { + { + let opt: &mut Option = + unsafe { &mut *self.future.get() }; + } + } + } + } + } + } + } + } +} diff --git a/tests/target/type.rs b/tests/target/type.rs index 7fb6e0fdf251b..d2c09cc354ad7 100644 --- a/tests/target/type.rs +++ b/tests/target/type.rs @@ -90,3 +90,25 @@ macro_rules! foo { } type Target = (FooAPI) + 'static; + +// #3117 +fn issue3117() { + { + { + { + { + { + { + { + { + let opt: &mut Option = + unsafe { &mut *self.future.get() }; + } + } + } + } + } + } + } + } +}