Skip to content

Commit

Permalink
Add regression test for #18883
Browse files Browse the repository at this point in the history
  • Loading branch information
bkoropoff committed Nov 12, 2014
1 parent 6de477c commit 0135858
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/test/run-pass/issue-18883.rs
@@ -0,0 +1,19 @@
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// Test that we don't ICE due to encountering unsubstituted type
// parameters when untupling FnOnce parameters during translation of
// an unboxing shim.

#![feature(unboxed_closures)]

fn main() {
let _: Box<FnOnce<(),()>> = box move |&mut:| {};
}

6 comments on commit 0135858

@alexcrichton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+, thanks!

@bors
Copy link
Contributor

@bors bors commented on 0135858 Nov 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at bkoropoff@0135858

@bors
Copy link
Contributor

@bors bors commented on 0135858 Nov 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging bkoropoff/rust/issue-18883 = 0135858 into auto

@bors
Copy link
Contributor

@bors bors commented on 0135858 Nov 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bkoropoff/rust/issue-18883 = 0135858 merged ok, testing candidate = 1bf0649

@bors
Copy link
Contributor

@bors bors commented on 0135858 Nov 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 0135858 Nov 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 1bf0649

Please sign in to comment.