mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
16 lines
301 B
Rust
16 lines
301 B
Rust
// 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() {}
|