We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 358e02d commit 30d29c9Copy full SHA for 30d29c9
src/test/compile-fail/lint-no-drop-on-repr-extern.rs
@@ -21,10 +21,10 @@
21
struct B { x: Box<i8> }
22
23
#[repr(C)] struct C { x: Box<i8> }
24
-//~^ ERROR The `#[repr(C)]` attribute is attached here
+//~^ ERROR the `#[repr(C)]` attribute is attached here
25
26
impl Drop for C { fn drop(&mut self) { } }
27
-//~^ ERROR Structs with `#[repr(C)]` attribute that implement Drop have extra hidden state
+//~^ ERROR implementing Drop adds hidden state to types, possibly conflicting with `#[repr(C)]`
28
29
#[unsafe_no_drop_flag]
30
#[repr(C)] struct D { x: Box<i8> }
0 commit comments