Fix codegen test.

This commit is contained in:
Stephen Chung 2021-01-06 19:30:58 +08:00
parent e059ca009c
commit 67a85a19ae
2 changed files with 6 additions and 3 deletions

View File

@ -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 {

View File

@ -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;
|