summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/no_inferrable_concrete_type.stderr
blob: 337708b876524920b548aac95dfca8ffb6d0845f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: unconstrained opaque type
  --> $DIR/no_inferrable_concrete_type.rs:7:20
   |
LL |     pub type Foo = impl Copy;
   |                    ^^^^^^^^^
   |
   = note: `Foo` must be used in combination with a concrete type within the same module

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
  --> $DIR/no_inferrable_concrete_type.rs:17:23
   |
LL |     let _: foo::Foo = std::mem::transmute(0u8);
   |                       ^^^^^^^^^^^^^^^^^^^
   |
   = note: source type: `u8` (8 bits)
   = note: target type: `Foo` (size can vary because of [type error])

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0512`.