Add a test for #3117

This commit is contained in:
Seiichi Uchida 2018-10-22 22:17:16 +09:00
parent 7d713a2827
commit cf44c079c1
2 changed files with 44 additions and 0 deletions

View File

@ -91,3 +91,25 @@ macro_rules! foo {
}
type Target = ( FooAPI ) + 'static;
// #3117
fn issue3117() {
{
{
{
{
{
{
{
{
let opt: &mut Option<MyLongTypeHere> =
unsafe { &mut *self.future.get() };
}
}
}
}
}
}
}
}
}

View File

@ -90,3 +90,25 @@ macro_rules! foo {
}
type Target = (FooAPI) + 'static;
// #3117
fn issue3117() {
{
{
{
{
{
{
{
{
let opt: &mut Option<MyLongTypeHere> =
unsafe { &mut *self.future.get() };
}
}
}
}
}
}
}
}
}