salsa/tests/compile-fail/tracked_method_on_untracked_impl.rs
Niko Matsakis 68a3a7fceb wip
2024-07-19 08:05:39 -04:00

13 lines
203 B
Rust

#[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() {}