blob: 9690f40b2c3a40b33908539338acaa32a6aa6f0d [file] [log] [blame]
//@ run-pass
macro_rules! foo {
($l:lifetime) => {
fn f<$l>(arg: &$l str) -> &$l str {
arg
}
}
}
pub fn main() {
foo!('a);
let x: &'static str = f("hi");
assert_eq!("hi", x);
}