We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4abcf28 commit cb26a25Copy full SHA for cb26a25
src/test/compile-fail/E0495.rs
@@ -8,7 +8,12 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
-// FIXME - This test gives different results on different machines.
+// Test that we give the generic E0495 when one of the free regions is
12
+// bound in a closure (rather than suggesting a change to the signature
13
+// of the closure, which is not specified in `foo` but rather in `invoke`).
14
+
15
+// FIXME - This might be better as a UI test, but the finer details
16
+// of the error seem to vary on different machines.
17
fn invoke<'a, F>(x: &'a i32, f: F) -> &'a i32
18
where F: FnOnce(&'a i32, &i32) -> &'a i32
19
{
0 commit comments