mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-25 02:53:35 +00:00
36 lines
524 B
Rust
36 lines
524 B
Rust
mod util;
|
|
use schemars::JsonSchema;
|
|
use util::*;
|
|
|
|
mod a {
|
|
use super::*;
|
|
|
|
#[allow(dead_code)]
|
|
#[derive(JsonSchema)]
|
|
pub struct Config {
|
|
test: String,
|
|
}
|
|
}
|
|
|
|
mod b {
|
|
use super::*;
|
|
|
|
#[allow(dead_code)]
|
|
#[derive(JsonSchema)]
|
|
pub struct Config {
|
|
test2: String,
|
|
}
|
|
}
|
|
|
|
#[allow(dead_code)]
|
|
#[derive(JsonSchema)]
|
|
pub struct Config2 {
|
|
a_cfg: a::Config,
|
|
b_cfg: b::Config,
|
|
}
|
|
|
|
#[test]
|
|
fn same_name() -> TestResult {
|
|
test_default_generated_schema::<Config2>("same_name")
|
|
}
|