mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 18:12:51 +00:00
Add a test for #3117
This commit is contained in:
parent
7d713a2827
commit
cf44c079c1
@ -91,3 +91,25 @@ macro_rules! foo {
|
||||
}
|
||||
|
||||
type Target = ( FooAPI ) + 'static;
|
||||
|
||||
// #3117
|
||||
fn issue3117() {
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
let opt: &mut Option<MyLongTypeHere> =
|
||||
unsafe { &mut *self.future.get() };
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -90,3 +90,25 @@ macro_rules! foo {
|
||||
}
|
||||
|
||||
type Target = (FooAPI) + 'static;
|
||||
|
||||
// #3117
|
||||
fn issue3117() {
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
let opt: &mut Option<MyLongTypeHere> =
|
||||
unsafe { &mut *self.future.get() };
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user