]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/const-argument-non-static-lifetime.min.stderr
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / ui / const-generics / const-argument-non-static-lifetime.min.stderr
1 error[E0658]: a non-static lifetime is not allowed in a `const`
2   --> $DIR/const-argument-non-static-lifetime.rs:15:17
3    |
4 LL |         let _: &'a ();
5    |                 ^^
6    |
7    = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
8    = help: add `#![feature(generic_const_exprs)]` to the crate attributes to enable
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0658`.