diff options
| author | Andre Bogus <bogusandre@gmail.com> | 2016-08-23 12:38:09 +0200 |
|---|---|---|
| committer | Andre Bogus <bogusandre@gmail.com> | 2016-08-23 12:38:09 +0200 |
| commit | a6b9fea5cd10afe9d7b81d30b2b082f727aea255 (patch) | |
| tree | 70b62955c8c5163a122347ae21dc1d1ada7dbd47 /src | |
| parent | 8bdb3e10ca637033667dec25ebfff64a069c46eb (diff) | |
| download | rust-a6b9fea5cd10afe9d7b81d30b2b082f727aea255.tar.gz rust-a6b9fea5cd10afe9d7b81d30b2b082f727aea255.zip | |
fixed compile-fail test
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/compile-fail/rfc1623.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/compile-fail/rfc1623.rs b/src/test/compile-fail/rfc1623.rs index dfe58f0d94c..a52b9c596aa 100644 --- a/src/test/compile-fail/rfc1623.rs +++ b/src/test/compile-fail/rfc1623.rs @@ -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 |
