Skip to content

Commit

Permalink
Add a test for rust-lang#3117
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro committed Oct 22, 2018
1 parent 7d713a2 commit cf44c07
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/source/type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,25 @@ macro_rules! foo {
}

type Target = ( FooAPI ) + 'static;

// #3117
fn issue3117() {
{
{
{
{
{
{
{
{
let opt: &mut Option<MyLongTypeHere> =
unsafe { &mut *self.future.get() };
}
}
}
}
}
}
}
}
}
22 changes: 22 additions & 0 deletions tests/target/type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,25 @@ macro_rules! foo {
}

type Target = (FooAPI) + 'static;

// #3117
fn issue3117() {
{
{
{
{
{
{
{
{
let opt: &mut Option<MyLongTypeHere> =
unsafe { &mut *self.future.get() };
}
}
}
}
}
}
}
}
}

0 comments on commit cf44c07

Please sign in to comment.