summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-free-region-outlives-static-outlives-free-region.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/regions/regions-free-region-outlives-static-outlives-free-region.rs')
-rw-r--r--tests/ui/regions/regions-free-region-outlives-static-outlives-free-region.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/regions/regions-free-region-outlives-static-outlives-free-region.rs b/tests/ui/regions/regions-free-region-outlives-static-outlives-free-region.rs
index 7c2e1aeee..46462c432 100644
--- a/tests/ui/regions/regions-free-region-outlives-static-outlives-free-region.rs
+++ b/tests/ui/regions/regions-free-region-outlives-static-outlives-free-region.rs
@@ -8,6 +8,8 @@
//
// 'a : 'b
+#![warn(unused_lifetimes)]
+
fn test<'a,'b>(x: &'a i32) -> &'b i32
where 'a: 'static //~ WARN unnecessary lifetime parameter `'a`
{