diff --git a/codegen/ui_tests/rhai_mod_unknown_type.rs b/codegen/ui_tests/rhai_mod_unknown_type.rs index ae582726..4c067fd3 100644 --- a/codegen/ui_tests/rhai_mod_unknown_type.rs +++ b/codegen/ui_tests/rhai_mod_unknown_type.rs @@ -9,13 +9,16 @@ pub struct Point { #[export_module] pub mod test_module { pub use super::Point; - pub fn test_fn(input: Point) -> bool { + pub fn test_fn(input: Pointer) -> bool { input.x < input.y } } fn main() { - let n = Point { x: 0.0, y: 10.0 }; + let n = Point { + x: 0.0, + y: 10.0 + }; if test_module::test_fn(n) { println!("yes"); } else { diff --git a/codegen/ui_tests/rhai_mod_unknown_type.stderr b/codegen/ui_tests/rhai_mod_unknown_type.stderr index 87360967..1b400234 100644 --- a/codegen/ui_tests/rhai_mod_unknown_type.stderr +++ b/codegen/ui_tests/rhai_mod_unknown_type.stderr @@ -19,5 +19,5 @@ help: consider importing one of these items | 11 | use std::fmt::Pointer; | -11 | use syn::export::fmt::Pointer; +11 | use syn::__private::fmt::Pointer; |