diff options
Diffstat (limited to 'src/test/ui/single-use-lifetime/two-uses-in-fn-arguments.rs')
-rw-r--r-- | src/test/ui/single-use-lifetime/two-uses-in-fn-arguments.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/single-use-lifetime/two-uses-in-fn-arguments.rs b/src/test/ui/single-use-lifetime/two-uses-in-fn-arguments.rs deleted file mode 100644 index 51724ebf8..000000000 --- a/src/test/ui/single-use-lifetime/two-uses-in-fn-arguments.rs +++ /dev/null @@ -1,16 +0,0 @@ -// Test that we DO NOT warn when lifetime name is used multiple -// arguments, or more than once in a single argument. -// -// check-pass - -#![deny(single_use_lifetimes)] -#![allow(dead_code)] -#![allow(unused_variables)] - -// OK: used twice -fn c<'a>(x: &'a u32, y: &'a u32) {} - -// OK: used twice -fn d<'a>(x: (&'a u32, &'a u32)) {} - -fn main() {} |