Skip to content

Commit cb26a25

Browse files
authored
tweak comments in E0495.rs
1 parent 4abcf28 commit cb26a25

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/compile-fail/E0495.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// FIXME - This test gives different results on different machines.
11+
// 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.
1217
fn invoke<'a, F>(x: &'a i32, f: F) -> &'a i32
1318
where F: FnOnce(&'a i32, &i32) -> &'a i32
1419
{

0 commit comments

Comments
 (0)