File: ice-struct-tail-normalization-113272.stderr

package info (click to toggle)
rustc 1.88.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 934,128 kB
  • sloc: xml: 158,127; python: 36,062; javascript: 19,855; sh: 19,700; cpp: 18,947; ansic: 12,993; asm: 4,792; makefile: 690; lisp: 29; perl: 29; ruby: 19; sql: 11
file content (28 lines) | stat: -rw-r--r-- 1,204 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
error[E0412]: cannot find type `Missing` in this scope
  --> $DIR/ice-struct-tail-normalization-113272.rs:5:25
   |
LL | impl Trait for () where Missing: Trait {}
   |                         ^^^^^^^ not found in this scope

error[E0046]: not all trait items implemented, missing: `RefTarget`
  --> $DIR/ice-struct-tail-normalization-113272.rs:5:1
   |
LL |     type RefTarget;
   |     -------------- `RefTarget` from trait
...
LL | impl Trait for () where Missing: Trait {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `RefTarget` in implementation

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
  --> $DIR/ice-struct-tail-normalization-113272.rs:15:9
   |
LL |         std::mem::transmute::<Option<()>, Option<&Other>>(None);
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: source type: `Option<()>` (8 bits)
   = note: target type: `Option<&Other>` (unable to determine layout for `Other` because `<() as Trait>::RefTarget` cannot be normalized)

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0046, E0412, E0512.
For more information about an error, try `rustc --explain E0046`.