1
0
Fork 0
ruma/crates/ruma-common/tests/it/api/ui/response-only.rs
Kévin Commaille 6a7935e979 api: Update trybuild output
Some wording has changed and warnings are added because of the `unexpected_cfgs` lint.
2025-01-09 20:54:14 +01: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);
}