Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit cf44c07

Browse files
committed
Add a test for rust-lang#3117
1 parent 7d713a2 commit cf44c07

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

tests/source/type.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,25 @@ macro_rules! foo {
9191
}
9292

9393
type Target = ( FooAPI ) + 'static;
94+
95+
// #3117
96+
fn issue3117() {
97+
{
98+
{
99+
{
100+
{
101+
{
102+
{
103+
{
104+
{
105+
let opt: &mut Option<MyLongTypeHere> =
106+
unsafe { &mut *self.future.get() };
107+
}
108+
}
109+
}
110+
}
111+
}
112+
}
113+
}
114+
}
115+
}

tests/target/type.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,25 @@ macro_rules! foo {
9090
}
9191

9292
type Target = (FooAPI) + 'static;
93+
94+
// #3117
95+
fn issue3117() {
96+
{
97+
{
98+
{
99+
{
100+
{
101+
{
102+
{
103+
{
104+
let opt: &mut Option<MyLongTypeHere> =
105+
unsafe { &mut *self.future.get() };
106+
}
107+
}
108+
}
109+
}
110+
}
111+
}
112+
}
113+
}
114+
}

0 commit comments

Comments
 (0)