ruwuma/crates/ruma-common/tests/it/api/ui/response-only.rs
Kévin Commaille 4e1b646050 api: Update trybuild output
Some wording has changed and warnings are added because of the `unexpected_cfgs` lint.
2025-02-16 15:13:55 -05:00

16 lines
281 B
Rust

#![allow(unexpected_cfgs)]
use ruma_common::api::response;
#[derive(PartialEq)] // Make sure attributes work
#[response]
pub struct Response {
pub flag: bool,
}
fn main() {
let res1 = Response { flag: false };
let res2 = res1.clone();
assert_eq!(res1, res2);
}