]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issue-67945-1.min.stderr
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / const-generics / issue-67945-1.min.stderr
1 error: generic parameters may not be used in const operations
2   --> $DIR/issue-67945-1.rs:14:16
3    |
4 LL |         let x: S = MaybeUninit::uninit();
5    |                ^ cannot perform const operation using `S`
6    |
7    = note: type parameters may not be used in const expressions
8
9 error: generic parameters may not be used in const operations
10   --> $DIR/issue-67945-1.rs:17:45
11    |
12 LL |         let b = &*(&x as *const _ as *const S);
13    |                                             ^ cannot perform const operation using `S`
14    |
15    = note: type parameters may not be used in const expressions
16
17 error[E0392]: parameter `S` is never used
18   --> $DIR/issue-67945-1.rs:11:12
19    |
20 LL | struct Bug<S> {
21    |            ^ unused parameter
22    |
23    = help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
24
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0392`.