3 #![feature(in_band_lifetimes)]
4 #![deny(single_use_lifetimes)]
6 #![allow(unused_variables)]
8 // Test that we DO warn when lifetime name is used only
9 // once in a fn argument, even with in band lifetimes.
11 fn a(x: &u32, y: &u32) {
12 //~^ ERROR `'a` only used once
13 //~| ERROR `'b` only used once
14 //~| HELP elide the single-use lifetime
15 //~| HELP elide the single-use lifetime