Skip to content

Commit 30d29c9

Browse files
committed
Update unit test to reflect changes to warning text.
1 parent 358e02d commit 30d29c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/compile-fail/lint-no-drop-on-repr-extern.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
struct B { x: Box<i8> }
2222

2323
#[repr(C)] struct C { x: Box<i8> }
24-
//~^ ERROR The `#[repr(C)]` attribute is attached here
24+
//~^ ERROR the `#[repr(C)]` attribute is attached here
2525

2626
impl Drop for C { fn drop(&mut self) { } }
27-
//~^ ERROR Structs with `#[repr(C)]` attribute that implement Drop have extra hidden state
27+
//~^ ERROR implementing Drop adds hidden state to types, possibly conflicting with `#[repr(C)]`
2828

2929
#[unsafe_no_drop_flag]
3030
#[repr(C)] struct D { x: Box<i8> }

0 commit comments

Comments
 (0)