blob: a1588eddc07470c6af5553ed6fd4002a89a1d9de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  | 
// Disallow `'keyword` even in cfg'd code.
#[cfg(any())]
fn hello() -> &'ref () {}
//~^ ERROR lifetimes cannot use keyword names
macro_rules! macro_invocation {
    ($i:item) => {}
}
macro_invocation! {
    fn hello() -> &'ref () {}
    //~^ ERROR lifetimes cannot use keyword names
}
fn main() {}
 
  |