Skip to content

Commit faf68f4

Browse files
committed
Hooray! 19982 finally works the way people wanted in December 2014 :)
1 parent 3739357 commit faf68f4

File tree

3 files changed

+17
-44
lines changed

3 files changed

+17
-44
lines changed

src/test/ui/issues/issue-19982-2.rs

-33
This file was deleted.

src/test/ui/issues/issue-19982.rs

+17-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,25 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(unboxed_closures)]
11+
// compile-pass
1212

13+
#![feature(fn_traits, unboxed_closures)]
14+
15+
#[allow(dead_code)]
1316
struct Foo;
1417

15-
impl Fn<(&(),)> for Foo { } //~ ERROR missing lifetime specifier
18+
impl Fn<(&(),)> for Foo {
19+
extern "rust-call" fn call(&self, (_,): (&(),)) {}
20+
}
21+
22+
impl FnMut<(&(),)> for Foo {
23+
extern "rust-call" fn call_mut(&mut self, (_,): (&(),)) {}
24+
}
25+
26+
impl FnOnce<(&(),)> for Foo {
27+
type Output = ();
28+
29+
extern "rust-call" fn call_once(self, (_,): (&(),)) {}
30+
}
1631

1732
fn main() {}

src/test/ui/issues/issue-19982.stderr

-9
This file was deleted.

0 commit comments

Comments
 (0)