We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bdb3e1 commit a6b9feaCopy full SHA for a6b9fea
src/test/compile-fail/rfc1623.rs
@@ -13,8 +13,9 @@
13
fn non_elidable<'a, 'b>(a: &'a u8, b: &'b u8) -> &'a u8 { a }
14
15
// the boundaries of elision
16
-static NON_ELIDABLE_FN : &fn(&u8, &u8) -> &u8 = non_elidable;
+static NON_ELIDABLE_FN : &fn(&u8, &u8) -> &u8 =
17
//~^ERROR: missing lifetime specifier
18
+ &(non_elidable as fn(&u8, &u8) -> &u8);
19
20
fn main() {
21
// nothing to do here
0 commit comments