]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.stderr
Add tests for `#[no_mangle]` in `impl` blocks that looks like generic `impl` blocks...
[rust.git] / src / test / ui / const-generics / min_const_generics / forbid-non-static-lifetimes.stderr
1 error[E0658]: a non-static lifetime is not allowed in a `const`
2   --> $DIR/forbid-non-static-lifetimes.rs:7:22
3    |
4 LL |     test::<{ let _: &'a (); 3 },>();
5    |                      ^^
6    |
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
9
10 error[E0658]: a non-static lifetime is not allowed in a `const`
11   --> $DIR/forbid-non-static-lifetimes.rs:21:16
12    |
13 LL |     [(); (|_: &'a u8| (), 0).1];
14    |                ^^
15    |
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
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0658`.