1804060c8SJoel Dice mod bindings { 2804060c8SJoel Dice wit_bindgen::generate!({ 3804060c8SJoel Dice path: "../misc/component-async-tests/wit", 4804060c8SJoel Dice world: "error-context-usage", 5804060c8SJoel Dice }); 6804060c8SJoel Dice 7804060c8SJoel Dice use super::Component; 8804060c8SJoel Dice export!(Component); 9804060c8SJoel Dice } 10804060c8SJoel Dice use bindings::exports::local::local::run::Guest; 11804060c8SJoel Dice 12*1047b511SAlex Crichton use wit_bindgen::rt::async_support::ErrorContext; 13804060c8SJoel Dice 14804060c8SJoel Dice struct Component; 15804060c8SJoel Dice 16804060c8SJoel Dice impl Guest for Component { run()17804060c8SJoel Dice async fn run() { 18804060c8SJoel Dice let err_ctx = ErrorContext::new("error"); 19804060c8SJoel Dice _ = err_ctx.debug_message(); 20804060c8SJoel Dice } 21804060c8SJoel Dice } 22804060c8SJoel Dice 23804060c8SJoel Dice // Unused function; required since this file is built as a `bin`: main()24804060c8SJoel Dicefn main() {} 25