1 error[E0658]: a non-static lifetime is not allowed in a `const`
2 --> $DIR/forbid-non-static-lifetimes.rs:7:22
4 LL | test::<{ let _: &'a (); 3 },>();
7 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
8 = help: add `#![feature(const_generics)]` to the crate attributes to enable
10 error[E0658]: a non-static lifetime is not allowed in a `const`
11 --> $DIR/forbid-non-static-lifetimes.rs:21:16
13 LL | [(); (|_: &'a u8| (), 0).1];
16 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
17 = help: add `#![feature(const_generics)]` to the crate attributes to enable
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0658`.