You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've used multiversion for many member functions but after upgrading to 0.7 I get compiler errors. Here is a MRE:
Compiling multiversion_7_bug v0.1.0 (/home/cytrinox/code/multiversion_7_bug)
error: cannot determine type of associated fn
--> src/main.rs:7:13
|
7 | fn bar(&self) {
| ^^^^
error[E0599]: no method named `bar` found for struct `Foo` in the current scope
--> src/main.rs:13:7
|
3 | struct Foo {}
| ---------- method `bar` not found for this struct
...
13 | x.bar();
| ^^^ method not found in `Foo`
For more information about this error, try `rustc --explain E0599`.
error: could not compile `multiversion_7_bug` (bin "multiversion_7_bug") due to 2 previous errors
Example code:
use multiversion::multiversion;structFoo{}implFoo{#[multiversion(targets("x86_64+avx+avx2","x86+sse","aarch64+neon"))]fnbar(&self){}}fnmain(){let x = Foo{};
x.bar();println!("Hello, world!");}
The text was updated successfully, but these errors were encountered:
I've used multiversion for many member functions but after upgrading to 0.7 I get compiler errors. Here is a MRE:
Example code:
The text was updated successfully, but these errors were encountered: