Fix codegen test.
This commit is contained in:
parent
e059ca009c
commit
67a85a19ae
@ -9,13 +9,16 @@ pub struct Point {
|
|||||||
#[export_module]
|
#[export_module]
|
||||||
pub mod test_module {
|
pub mod test_module {
|
||||||
pub use super::Point;
|
pub use super::Point;
|
||||||
pub fn test_fn(input: Point) -> bool {
|
pub fn test_fn(input: Pointer) -> bool {
|
||||||
input.x < input.y
|
input.x < input.y
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
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) {
|
if test_module::test_fn(n) {
|
||||||
println!("yes");
|
println!("yes");
|
||||||
} else {
|
} else {
|
||||||
|
@ -19,5 +19,5 @@ help: consider importing one of these items
|
|||||||
|
|
|
|
||||||
11 | use std::fmt::Pointer;
|
11 | use std::fmt::Pointer;
|
||||||
|
|
|
|
||||||
11 | use syn::export::fmt::Pointer;
|
11 | use syn::__private::fmt::Pointer;
|
||||||
|
|
|
|
||||||
|
Loading…
Reference in New Issue
Block a user