]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/generic_const_exprs/issue-74713.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / const-generics / generic_const_exprs / issue-74713.stderr
1 error[E0658]: a non-static lifetime is not allowed in a `const`
2   --> $DIR/issue-74713.rs:4: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[E0308]: mismatched types
11   --> $DIR/issue-74713.rs:3:10
12    |
13 LL |       [(); {
14    |  __________^
15 LL | |         let _: &'a ();
16 LL | |     }]:
17    | |_____^ expected `usize`, found `()`
18
19 error: aborting due to 2 previous errors
20
21 Some errors have detailed explanations: E0308, E0658.
22 For more information about an error, try `rustc --explain E0308`.