mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-14 09:01:11 +00:00
19 lines
No EOL
313 B
Rust
19 lines
No EOL
313 B
Rust
#[salsa::jar(db = Db)]
|
|
struct Jar(InputWithBannedName1, InputWithBannedName2);
|
|
|
|
// Banned field name: `from`
|
|
#[salsa::input]
|
|
struct InputWithBannedName1 {
|
|
from: u32,
|
|
}
|
|
|
|
// Banned field name: `new`
|
|
#[salsa::input]
|
|
struct InputWithBannedName2 {
|
|
new: u32,
|
|
}
|
|
|
|
trait Db: salsa::DbWithJar<Jar> {}
|
|
|
|
|
|
fn main() {} |