diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-02-10 17:32:39 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-02-10 17:32:39 +0100 |
| commit | 3f5af9f34d282cde910c0a1dc6b9c595227701c3 (patch) | |
| tree | f0705a9ffb1ef72a73c7fe1d56bb14a43a383ba8 | |
| parent | 0a0aa11bb1551ef3c0eda2a93d94077ba76b5150 (diff) | |
| download | rust-3f5af9f34d282cde910c0a1dc6b9c595227701c3.tar.gz rust-3f5af9f34d282cde910c0a1dc6b9c595227701c3.zip | |
add `//~ ERROR` line to test for privacy respecting FRU (RFC 736).
| -rw-r--r-- | src/test/compile-fail/functional-struct-update-respects-privacy.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/functional-struct-update-respects-privacy.rs b/src/test/compile-fail/functional-struct-update-respects-privacy.rs index c1619a38a29..51e23a689a1 100644 --- a/src/test/compile-fail/functional-struct-update-respects-privacy.rs +++ b/src/test/compile-fail/functional-struct-update-respects-privacy.rs @@ -36,7 +36,7 @@ mod foo { fn main() { let s_1 = foo::make_secrets(3, format!("ess one")); let s_2 = foo::S { b: format!("ess two"), ..s_1 }; // FRU ... - + //~^ ERROR field `secret_uid` of struct `foo::S` is private println!("main forged an S named: {}", s_2.b); // at end of scope, ... both s_1 *and* s_2 get dropped. Boom! } |
