Skip to content

Commit a6b9fea

Browse files
committed
fixed compile-fail test
1 parent 8bdb3e1 commit a6b9fea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/compile-fail/rfc1623.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
fn non_elidable<'a, 'b>(a: &'a u8, b: &'b u8) -> &'a u8 { a }
1414

1515
// the boundaries of elision
16-
static NON_ELIDABLE_FN : &fn(&u8, &u8) -> &u8 = non_elidable;
16+
static NON_ELIDABLE_FN : &fn(&u8, &u8) -> &u8 =
1717
//~^ERROR: missing lifetime specifier
18+
&(non_elidable as fn(&u8, &u8) -> &u8);
1819

1920
fn main() {
2021
// nothing to do here

0 commit comments

Comments
 (0)