]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-14309.stderr
Implement RFC 2645 (transparent enums and unions)
[rust.git] / src / test / ui / issues / issue-14309.stderr
index b8d82aadd482f98412e63948c683b78117fd02d6..e0491093a722aad3ca9a2af0ed7c541a8edec61b 100644 (file)
@@ -1,7 +1,7 @@
 error: `extern` block uses type `A` which is not FFI-safe: this struct has unspecified layout
   --> $DIR/issue-14309.rs:30:15
    |
-LL |     fn foo(x: A); //~ ERROR type `A` which is not FFI-safe
+LL |     fn foo(x: A);
    |               ^
    |
 note: lint level defined here
@@ -9,7 +9,7 @@ note: lint level defined here
    |
 LL | #![deny(improper_ctypes)]
    |         ^^^^^^^^^^^^^^^
-   = help: consider adding a #[repr(C)] or #[repr(transparent)] attribute to this struct
+   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
 note: type defined here
   --> $DIR/issue-14309.rs:4:1
    |
@@ -21,10 +21,10 @@ LL | | }
 error: `extern` block uses type `A` which is not FFI-safe: this struct has unspecified layout
   --> $DIR/issue-14309.rs:31:15
    |
-LL |     fn bar(x: B); //~ ERROR type `A`
+LL |     fn bar(x: B);
    |               ^
    |
-   = help: consider adding a #[repr(C)] or #[repr(transparent)] attribute to this struct
+   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
 note: type defined here
   --> $DIR/issue-14309.rs:4:1
    |
@@ -36,10 +36,10 @@ LL | | }
 error: `extern` block uses type `A` which is not FFI-safe: this struct has unspecified layout
   --> $DIR/issue-14309.rs:33:15
    |
-LL |     fn qux(x: A2); //~ ERROR type `A`
+LL |     fn qux(x: A2);
    |               ^^
    |
-   = help: consider adding a #[repr(C)] or #[repr(transparent)] attribute to this struct
+   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
 note: type defined here
   --> $DIR/issue-14309.rs:4:1
    |
@@ -51,10 +51,10 @@ LL | | }
 error: `extern` block uses type `A` which is not FFI-safe: this struct has unspecified layout
   --> $DIR/issue-14309.rs:34:16
    |
-LL |     fn quux(x: B2); //~ ERROR type `A`
+LL |     fn quux(x: B2);
    |                ^^
    |
-   = help: consider adding a #[repr(C)] or #[repr(transparent)] attribute to this struct
+   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
 note: type defined here
   --> $DIR/issue-14309.rs:4:1
    |
@@ -66,10 +66,10 @@ LL | | }
 error: `extern` block uses type `A` which is not FFI-safe: this struct has unspecified layout
   --> $DIR/issue-14309.rs:36:16
    |
-LL |     fn fred(x: D); //~ ERROR type `A`
+LL |     fn fred(x: D);
    |                ^
    |
-   = help: consider adding a #[repr(C)] or #[repr(transparent)] attribute to this struct
+   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
 note: type defined here
   --> $DIR/issue-14309.rs:4:1
    |