mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
tests: Rename privatize.rs to deny_public_fields.rs
Privatize is no longer mentioned in the codebase, as of 8bcf36b9a5
, so
rename the relevant test to avoid confusion.
This commit is contained in:
parent
3f2d747689
commit
eb98adf039
1 changed files with 0 additions and 0 deletions
18
tests/compiletest/plugin/compile-fail/deny_public_fields.rs
Normal file
18
tests/compiletest/plugin/compile-fail/deny_public_fields.rs
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#![allow(dead_code)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate deny_public_fields;
|
||||
|
||||
#[derive(DenyPublicFields)]
|
||||
//~^ ERROR proc-macro derive panicked
|
||||
//~| HELP Field `v1` should not be public
|
||||
struct Foo {
|
||||
pub v1: i32,
|
||||
v2: i32
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue