fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
683 B18 linesraw
1error[E0106]: missing lifetime specifier
2  --> $DIR/lifetime-in-const-param.rs:5:23
3   |
4LL | struct S<'a, const N: S2>(&'a ());
5   |                       ^^ expected named lifetime parameter
6
7error: `S2<'_>` is forbidden as the type of a const generic parameter
8  --> $DIR/lifetime-in-const-param.rs:5:23
9   |
10LL | struct S<'a, const N: S2>(&'a ());
11   |                       ^^
12   |
13   = note: the only supported types are integers, `bool` and `char`
14   = help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
15
16error: aborting due to 2 previous errors
17
18For more information about this error, try `rustc --explain E0106`.