Skip to content

Commit

Permalink
fixed compile-fail test
Browse files Browse the repository at this point in the history
  • Loading branch information
llogiq committed Aug 23, 2016
1 parent 8bdb3e1 commit a6b9fea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/compile-fail/rfc1623.rs
Expand Up @@ -13,8 +13,9 @@
fn non_elidable<'a, 'b>(a: &'a u8, b: &'b u8) -> &'a u8 { a }

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

fn main() {
// nothing to do here
Expand Down

0 comments on commit a6b9fea

Please sign in to comment.