]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/no_inferrable_concrete_type.stderr
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / type-alias-impl-trait / no_inferrable_concrete_type.stderr
1 error: unconstrained opaque type
2   --> $DIR/no_inferrable_concrete_type.rs:7:20
3    |
4 LL |     pub type Foo = impl Copy;
5    |                    ^^^^^^^^^
6    |
7    = note: `Foo` must be used in combination with a concrete type within the same module
8
9 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
10   --> $DIR/no_inferrable_concrete_type.rs:17:23
11    |
12 LL |     let _: foo::Foo = std::mem::transmute(0u8);
13    |                       ^^^^^^^^^^^^^^^^^^^
14    |
15    = note: source type: `u8` (8 bits)
16    = note: target type: `Foo` (size can vary because of [type error])
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0512`.