]> git.lizzy.rs Git - rust.git/commit
compile-fail tests.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 6 Oct 2015 11:56:36 +0000 (13:56 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 6 Oct 2015 12:16:50 +0000 (14:16 +0200)
commit83077bee9352cea17758b26aa467022b2fbdc599
tree95069015b100de33cbea0ab4261539dcfc29665a
parenteea299beaaf5d4a735101a1209d774a2faf01343
compile-fail tests.

One just checks that we are feature-gating the UGEH attribute (as
usual for attributes associated with unstable features).

The other is adapted from the RFC 1238 text, except that it has been
extended somewhat to actually *illustrate* the scenario that we are
trying to prevent, namely observing the state of data, from safe code,
after the destructor for that data has been executed.
src/test/compile-fail/feature-gate-dropck-ugeh.rs [new file with mode: 0644]
src/test/compile-fail/issue28498-reject-ex1.rs [new file with mode: 0644]