Closed
Description
openedon Aug 19, 2013
fn main() {
// expected `fn`, but found `;`
// let _: @'static int;
let _: @'static whatever fn();
let _: @'static + fn() = || {};
let _: @'static for fn() = || {};
let _: @'static "a string" fn() = || {};
let _: @'static 'a fn() = || {};
// Illegal lifetime: named region `&'a` not in scope here
// let _: @'a whatever fn();
}
The last example is just showing that the 'static
actually get parsed as a lifetime.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment