salsa/tests/compile-fail/tracked_method_on_untracked_impl.rs

14 lines
203 B
Rust
Raw Normal View History

2022-09-03 14:44:56 +00:00
#[salsa::input]
struct MyInput {
field: u32,
}
impl MyInput {
#[salsa::tracked]
fn tracked_method_on_untracked_impl(self, db: &dyn Db) -> u32 {
input.field(db)
}
}
fn main() {}