salsa/tests/compile-fail/get-set-on-private-input-field.rs
2024-07-19 07:08:24 -04:00

16 lines
270 B
Rust

use salsa::prelude::*;
mod a {
#[salsa::input]
pub struct MyInput {
field: u32,
}
}
fn main() {
let mut db = salsa::default_database();
let input = a::MyInput::new(&mut db, 22);
input.field(&db);
input.set_field(&mut db).to(23);
}