fork/rust

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

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

master
812 B21 linesraw
1error: generic parameters may not be used in const operations
2  --> $DIR/issue-67945-4.rs:10:27
3   |
4LL |         let x: Option<Box<S>> = None;
5   |                           ^ cannot perform const operation using `S`
6   |
7   = note: type parameters may not be used in const expressions
8   = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
9
10error[E0392]: parameter `S` is never used
11  --> $DIR/issue-67945-4.rs:8:12
12   |
13LL | struct Bug<S> {
14   |            ^ unused parameter
15   |
16   = help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
17   = help: if you intended `S` to be a const parameter, use `const S: usize` instead
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0392`.