mirror of
https://github.com/servo/servo.git
synced 2025-06-12 10:24:43 +00:00
16 lines
429 B
Rust
16 lines
429 B
Rust
/* 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/. */
|
|
|
|
#![feature(plugin, custom_attribute)]
|
|
#![plugin(plugins)]
|
|
#![allow(dead_code)]
|
|
|
|
#[privatize]
|
|
struct Foo {
|
|
pub v1: i32,
|
|
//~^ ERROR Field v1 is public where only private fields are allowed
|
|
v2: i32
|
|
}
|
|
|
|
fn main() {}
|