Skip to content

Commit 80be25e

Browse files
committed
Fix warnings in unit test
1 parent adb3fbb commit 80be25e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/run-pass/rfc1623.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ static STATIC_SIMPLE_FN: &fn(&[u8]) -> &[u8] = &(id_u8_slice as fn(&[u8]) -> &[u
2828
const CONST_SIMPLE_FN: &fn(&[u8]) -> &[u8] = &(id_u8_slice as fn(&[u8]) -> &[u8]);
2929

3030
// this should be the same as without elision
31-
static STATIC_NON_ELIDED_fN: &for<'a> fn(&'a [u8]) -> &'a [u8] =
31+
static STATIC_NON_ELIDED_FN: &for<'a> fn(&'a [u8]) -> &'a [u8] =
3232
&(id_u8_slice as for<'a> fn(&'a [u8]) -> &'a [u8]);
33-
const CONST_NON_ELIDED_fN: &for<'a> fn(&'a [u8]) -> &'a [u8] =
33+
const CONST_NON_ELIDED_FN: &for<'a> fn(&'a [u8]) -> &'a [u8] =
3434
&(id_u8_slice as for<'a> fn(&'a [u8]) -> &'a [u8]);
3535

3636
// another function that elides, each to a different unbound lifetime
37-
fn multi_args(a: &u8, b: &u8, c: &u8) {}
37+
fn multi_args(_a: &u8, _b: &u8, _c: &u8) {}
3838

3939
static STATIC_MULTI_FN: &fn(&u8, &u8, &u8) = &(multi_args as fn(&u8, &u8, &u8));
4040
const CONST_MULTI_FN: &fn(&u8, &u8, &u8) = &(multi_args as fn(&u8, &u8, &u8));

0 commit comments

Comments
 (0)