Files
mlua-rs-mlua/tests/compile/userdata_field_async.rs

15 lines
218 B
Rust

use mlua::Result;
#[derive(Clone, Debug, mlua::UserData)]
struct Foo;
#[mlua::userdata_impl]
impl Foo {
#[lua(field)]
async fn description() -> Result<String> {
Ok("foo".into())
}
}
fn main() {}