Skip to content

Commit

Permalink
Update unit test to reflect changes to warning text.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Apr 29, 2015
1 parent 358e02d commit 30d29c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/compile-fail/lint-no-drop-on-repr-extern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
struct B { x: Box<i8> }

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

impl Drop for C { fn drop(&mut self) { } }
//~^ 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)]`

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

0 comments on commit 30d29c9

Please sign in to comment.