@@ -24,23 +24,14 @@ LL | | CONST_BUG(0);
24
24
LL | | }
25
25
| |_^
26
26
27
- error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
28
- --> $DIR/issue-53092-2.rs:6:41
29
- |
30
- LL | const CONST_BUG: Bug<u8, ()> = unsafe { std::mem::transmute(|_: u8| ()) };
31
- | ^^^^^^^^^^^^^^^^^^^
32
- |
33
- = note: source type: `[closure@$DIR/issue-53092-2.rs:6:61: 6:68]` (0 bits)
34
- = note: target type: `Bug<u8, ()>` (size can vary because of [type error])
35
-
36
27
error[E0277]: the trait bound `U: From<T>` is not satisfied
37
- --> $DIR/issue-53092-2.rs:10 :5
28
+ --> $DIR/issue-53092-2.rs:9 :5
38
29
|
39
30
LL | |x| x.into()
40
31
| ^^^^^^^^^^^^ the trait `From<T>` is not implemented for `U`
41
32
|
42
33
note: required by a bound in `make_bug`
43
- --> $DIR/issue-53092-2.rs:9 :19
34
+ --> $DIR/issue-53092-2.rs:8 :19
44
35
|
45
36
LL | fn make_bug<T, U: From<T>>() -> Bug<T, U> {
46
37
| ^^^^^^^ required by this bound in `make_bug`
@@ -49,7 +40,7 @@ help: consider restricting type parameter `U`
49
40
LL | type Bug<T, U: std::convert::From<T>> = impl Fn(T) -> U + Copy;
50
41
| +++++++++++++++++++++++
51
42
52
- error: aborting due to 3 previous errors
43
+ error: aborting due to 2 previous errors
53
44
54
- Some errors have detailed explanations: E0277, E0391, E0512 .
45
+ Some errors have detailed explanations: E0277, E0391.
55
46
For more information about an error, try `rustc --explain E0277`.
0 commit comments