]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/diverging-fn-tail-35849.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / diverging-fn-tail-35849.stderr
index 8f8ab79b25b6c96d82433f507fb247886089da89..3f3ef666f66397245a075ac27240a97e540eed18 100644 (file)
@@ -1,14 +1,14 @@
 error[E0308]: mismatched types
-  --> $DIR/diverging-fn-tail-35849.rs:13:9
+  --> $DIR/diverging-fn-tail-35849.rs:3:9
    |
 LL | fn assert_sizeof() -> ! {
    |                       - expected `!` because of return type
 LL |     unsafe {
 LL |         ::std::mem::transmute::<f64, [u8; 8]>(panic!())
-   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected !, found array of 8 elements
+   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected !, found array `[u8; 8]`
    |
    = note: expected type `!`
-              found type `[u8; 8]`
+             found array `[u8; 8]`
 
 error: aborting due to previous error