@@ -24,23 +24,14 @@ LL | | CONST_BUG(0);
2424LL | | }
2525 | |_^
2626
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-
3627error[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
3829 |
3930LL | |x| x.into()
4031 | ^^^^^^^^^^^^ the trait `From<T>` is not implemented for `U`
4132 |
4233note: required by a bound in `make_bug`
43- --> $DIR/issue-53092-2.rs:9 :19
34+ --> $DIR/issue-53092-2.rs:8 :19
4435 |
4536LL | fn make_bug<T, U: From<T>>() -> Bug<T, U> {
4637 | ^^^^^^^ required by this bound in `make_bug`
@@ -49,7 +40,7 @@ help: consider restricting type parameter `U`
4940LL | type Bug<T, U: std::convert::From<T>> = impl Fn(T) -> U + Copy;
5041 | +++++++++++++++++++++++
5142
52- error: aborting due to 3 previous errors
43+ error: aborting due to 2 previous errors
5344
54- Some errors have detailed explanations: E0277, E0391, E0512 .
45+ Some errors have detailed explanations: E0277, E0391.
5546For more information about an error, try `rustc --explain E0277`.
0 commit comments