Skip to content

Commit 3f5af9f

Browse files
committed
add //~ ERROR line to test for privacy respecting FRU (RFC 736).
1 parent 0a0aa11 commit 3f5af9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/compile-fail/functional-struct-update-respects-privacy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ mod foo {
3636
fn main() {
3737
let s_1 = foo::make_secrets(3, format!("ess one"));
3838
let s_2 = foo::S { b: format!("ess two"), ..s_1 }; // FRU ...
39-
39+
//~^ ERROR field `secret_uid` of struct `foo::S` is private
4040
println!("main forged an S named: {}", s_2.b);
4141
// at end of scope, ... both s_1 *and* s_2 get dropped. Boom!
4242
}

0 commit comments

Comments
 (0)